Start index in array
A tuple of [min, max]
where both are vectors specifying the min/max channel ranges for this color type.
Step size between channels
Clamps all color channels so that colors is inside RGB gamut.
Returns a copy of this instance. Shallow or deep copies are implementation specific.
Returns wrapped value.
Returns an empty/blank instance of same type (with possibly same config, if any).
Randomizes all color channels based on channel ranges defined for this color type (usually [0..1] interval). Alpha channel will remain untouched.
Copies src
into this color's array.
For memory mapped colors, this ensures only the elements used by this color are being serialized (as array) by JSON.stringify()
.
Generated using TypeDoc
Backing array / memory