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