Static ReadonlyBLACKStatic ReadonlyBLUEStatic ReadonlyCYANStatic ReadonlyGREENStatic ReadonlyPURPLEStatic ReadonlyREDStatic ReadonlyWHITEStatic ReadonlyYELLOWBlend 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].
Optionalalpha: number = 1.0Alpha value [0.0 .. 1.0].
Reference to this object for method chaining.
StaticaddStaticcopyStaticdarkenStaticlerpStaticlightenStaticrandomStaticsetStaticsubtract
A color manipulation class.