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