lovr.graphics.setBackgroundColor

Sets the background color used to clear the screen. Color components are from 0.0 to 1.0.

lovr.graphics.setBackgroundColor(r, g, b, a)

Arguments

NameTypeDefaultDescription
rnumberThe red component of the background color.
gnumberThe green component of the background color.
bnumberThe blue component of the background color.
anumber1.0The alpha component of the background color.

Returns

Nothing

Notes

The default background color is black.

See also