Optionalr: numberThe red channel [0 .. 1].
Optionalg: numberThe green channel [0 .. 1].
Optionalb: numberThe blue channe; [0 .. 1].
Optionalalpha: numberThe alpha channel [0 .. 1].
Static ReadonlyBLACKA black color constant.
Static ReadonlyBLUEA blue color constant.
Static ReadonlyCYANA cyan color constant.
Static ReadonlyGREENA green color constant.
Static ReadonlyPURPLEA purple color constant.
Static ReadonlyREDA red color constant.
Static ReadonlyWHITEA white color constant.
Static ReadonlyYELLOWA yellow color constant.
Allows for iteration of components.
Copy a color object or CSS color into this one.
This color instance.
Compare this color with another one using a tolerance.
Optionaltolerance: numberMaximum allowed per-channel difference.
Whether all components are approximately equal.
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: numberAlpha value [0.0 .. 1.0].
This color instance.
StaticaddStaticcopyStaticdarkenStaticdeserializeStaticfuzzyStaticlerpStaticlightenStaticrandomStaticserializeStaticsetStaticsubtractStaticvalidateCheck whether a value matches the serialized color shape.
Value to validate.
Whether the value is a valid serialized color.
A color manipulation class.