@tempots/color
xyz2hsluv() function
Converts XYZ color space to HSLuv color space.
Signature:
xyz2hsluv: (xyz: XYZ, whiteReference?: [number, number, number]) => HSLuv
Parameters
Parameter |
Type |
Description |
---|---|---|
xyz |
The XYZ color to convert. | |
whiteReference |
[number, number, number] |
(Optional) The white reference used for conversion. Defaults to WHITE_REFERENCE. |
Returns: HSLuv
The color in HSLuv color space.