@tempots/color
rgb2luv() function
Converts an RGB color to LUV color space.
Signature:
rgb2luv: (rgb: RGB, whiteReference?: [number, number, number]) => LUV
Parameters
Parameter |
Type |
Description |
---|---|---|
rgb |
The RGB color to convert. | |
whiteReference |
[number, number, number] |
(Optional) The white reference used for the conversion. Defaults to |
Returns: LUV
The converted LUV color.