Views
love.graphics.newCanvas
Available since LÖVE 0.8.0 |
It has been renamed from love.graphics.newFramebuffer. |
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! |
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