Static
Readonly
BLACKStatic
Readonly
BLUEStatic
Readonly
CYANStatic
Readonly
GREENStatic
Readonly
PURPLEStatic
Readonly
REDStatic
Readonly
WHITEStatic
Readonly
YELLOWBlend this color with the given one using addition.
Reference to this object for method chaining.
Copy a color object or CSS color into this one.
Reference to this object for method chaining.
Darken this color value by 0..1.
Reference to this object for method chaining.
Linearly interpolate between this color and the given one.
With alpha = 0 being this color, and alpha = 1 being the given one.
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.