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