lovr.graphics.getBackgroundColor

Returns the current background color. Color components are from 0.0 to 1.0.

r, g, b, a = lovr.graphics.getBackgroundColor()

Arguments

None

Returns

NameTypeDescription
rnumberThe red component of the background color.
gnumberThe green component of the background color.
bnumberThe blue component of the background color.
anumberThe alpha component of the background color.

Notes

The default background color is (0.0, 0.0, 0.0, 1.0).

See also