love.graphics.clear
Clears the screen or active Canvas to the specified color.

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.

In versions prior to 11.0, color component values were within the range of 0 to 255 instead of 0 to 1.

In versions prior to background color instead.
love.graphics.clear()
love.graphics.clear( r, g, b, a, clearstencil, cleardepth )
r number The red channel of the color to clear the screen to.
g number The green channel of the color to clear the screen to.
b number The blue channel of the color to clear the screen to.
a (1) number The alpha channel of the color to clear the screen to.
clearstencil (true) boolean Whether to clear the active stencil buffer, if present. It can also be an integer between 0 and 255 to clear the stencil buffer to a specific value.
cleardepth (true) boolean Whether to clear the active depth buffer, if present. It can also be a number between 0 and 1 to clear the depth buffer to a specific value.
love.graphics.clear( color, ..., clearstencil, cleardepth )
color table A table in the form of {r, g, b, a} containing the color to clear the first active Canvas to.
... table Additional tables for each active Canvas.
clearstencil (true) boolean Whether to clear the active stencil buffer, if present. It can also be an integer between 0 and 255 to clear the stencil buffer to a specific value.
cleardepth (true) boolean Whether to clear the active depth buffer, if present. It can also be a number between 0 and 1 to clear the depth buffer to a specific value.
love.graphics.clear( clearcolor, clearstencil, cleardepth )
clearcolor boolean Whether to clear the active color canvas to transparent black (0, 0, 0, 0). Typically this should be set to false with this variant of the function.
clearstencil boolean Whether to clear the active stencil buffer, if present. It can also be an integer between 0 and 255 to clear the stencil buffer to a specific value.
cleardepth boolean Whether to clear the active depth buffer, if present. It can also be a number between 0 and 1 to clear the depth buffer to a specific value.