Pass:setColor

Edit

Sets the color used for drawing. Color components are from 0 to 1.




Arguments

NameTypeDefaultDescription
rnumber The red component of the color.
gnumber The green component of the color.
bnumber The blue component of the color.
anumber1.0 The alpha component of the color.

Returns

Nothing

Arguments

NameTypeDescription
ttable

Returns

Nothing

Arguments

NameTypeDefaultDescription
hexnumber A hexcode.
anumber1.0 The alpha component of the color.

Returns

Nothing

Notes

The default color is (1, 1, 1, 1).

See also