StaticblackStatictransparentStaticwhiteConverts this color to a HueSaturationValue color.
Converts the current color from SRGB to linear space and returns the result.
StaticaddStaticdivideStaticisStaticisStaticmultiplyStaticmultiplyStaticsubtractStaticwith
The SRGBColor implements a color in SRGB color space. The class follows the 'copy-on-write' pattern, which means that every operation such as SRGBColor.divideScalar or SRGBColor.multiply returns a copy of the color with updated values. It also implies that the values of the color cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.