The red channel [0 .. 1].
The green channel [0 .. 1].
The blue channe; [0 .. 1].
The alpha channel [0 .. 1].
Static ReadonlyBLACKStatic ReadonlyBLUEStatic ReadonlyCYANStatic ReadonlyGREENStatic ReadonlyPURPLEStatic ReadonlyREDStatic ReadonlyWHITEStatic ReadonlyYELLOWDarken 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].
Optionalalpha: number = 1.0Alpha value [0.0 .. 1.0].
Reference to this object for method chaining.
StaticaddStaticcopyStaticdarkenStaticlerpStaticlightenStaticrandomStaticsetStaticsubtract
A color manipulation class.