@tempots/color
cmyk2lch() function
Converts a CMYK color to LCH color.
Signature:
cmyk2lch: (cmyk: CMYK, whiteReference?: [number, number, number]) => LCH
Parameters
Parameter |
Type |
Description |
---|---|---|
cmyk |
The CMYK 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.