Clears the screen to the background color in LÖVE 0.9.2 and earlier, or to the specified color in 0.10.0 and newer.
This function is called automatically before love.draw in the default love.run function. See the example in love.run for a typical use of this function.
Note that the scissor area bounds the cleared region.
Clears the screen to the background color in 0.9.2 and earlier, or to transparent black (0, 0, 0, 0) in LÖVE 0.10.0 and newer.
love.graphics.clear( )
None.
Nothing.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
Clears the screen or active Canvas to the specified color.
love.graphics.clear( r, g, b, a )
number r
number g
number b
number a (255)
Nothing.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
Clears multiple active Canvases to different colors, if multiple Canvases are active at once via love.graphics.setCanvas.
love.graphics.clear( color, ... )
table color
{r, g, b, a}
containing the color to clear the first active Canvas to.table ...
Nothing.
A color must be specified for each active Canvas, when this function variant is used.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.clear