The red channel [0 .. 1].
The green channel [0 .. 1].
The blue channe; [0 .. 1].
The alpha channel [0 .. 1].
Static
Readonly
BLACKStatic
Readonly
BLUEStatic
Readonly
CYANStatic
Readonly
GREENStatic
Readonly
PURPLEStatic
Readonly
REDStatic
Readonly
WHITEStatic
Readonly
YELLOWDarken this color value by 0..1.
Reference to this object for method chaining.
Lighten this color value by 0..1.
Reference to this object for method chaining.
Generate random r,g,b values for this color object.
Set this color to the specified value.
Red component [0 .. 255].
Green component [0 .. 255].
Blue component [0 .. 255].
Optional
alpha: number = 1.0Alpha value [0.0 .. 1.0].
Reference to this object for method chaining.
Static
addStatic
copyStatic
darkenStatic
lerpStatic
lightenStatic
randomStatic
setStatic
subtract
A color manipulation class.