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