Pass:setColor

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


Pass:setColor(r, g, b, a)

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


Pass:setColor(t)

Arguments

NameTypeDescription
ttable

Returns

Nothing


Pass:setColor(hex, a)

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