@tempots/color
hsl2lch() function
Converts an HSL color to LCH color.
Signature:
hsl2lch: (hsl: HSL, whiteReference?: [number, number, number]) => LCH
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: LCH
The converted LCH color.