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!
canvas = love.graphics.newCanvas( )
None.
Canvas canvas
canvas = love.graphics.newCanvas( width, height )
Canvas canvas
Available since LÖVE 0.9.0
This variant is not supported in earlier versions.
canvas = love.graphics.newCanvas( width, height, format )
number width (window_width)
number height (window_height)
CanvasFormat format ("normal")
Canvas canvas
Some Canvas formats have higher system requirements than the default format. Use love.graphics.getCanvasFormats to check for support.
Available since LÖVE 0.9.1
This variant is not supported in earlier versions.
canvas = love.graphics.newCanvas( width, height, format, msaa )
number width (window_width)
number height (window_height)
CanvasFormat format ("normal")
number msaa (0)
Canvas canvas
The supported maximum number of MSAA samples varies depending on the system. Use love.graphics.getSystemLimits to check.
If the number of MSAA samples specified is greater than the maximum supported by the system, the Canvas will still be created but only using the maximum supported amount (this includes 0.)
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.newCanvas