lovr.graphics.getColor

Returns the current global color factor. Color components are from 0.0 to 1.0. Every pixel drawn will be multiplied (i.e. tinted) by this color.

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

Arguments

None

Returns

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

Notes

The default color is white.

See also