Difference between revisions of "love.graphics.newCanvas"
m |
|||
Line 6: | Line 6: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | canvas = love.graphics.newCanvas( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
Line 16: | Line 16: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | canvas = love.graphics.newCanvas( width, height ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === |
Revision as of 22:13, 5 February 2012
Available since LÖVE 0.8.0 |
This function is not supported in earlier versions. |
Creates a new Canvas object for offscreen rendering.
This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! |
Contents
Function
Synopsis
canvas = love.graphics.newCanvas( )
Arguments
None.
Returns
Canvas canvas
- A new Canvas with width/height equal to the window width/height.
Function
Synopsis
canvas = love.graphics.newCanvas( width, height )
Arguments
Returns
Canvas canvas
- A new Canvas with specified width and height.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info