@tempots/color

lch2hsv() function

Converts a color in the LCH color space to the HSV color space.

Signature:

lch2hsv: (lch: LCH, whiteReference?: [number, number, number]) => HSV

Parameters

Parameter

Type

Description

lch

LCH

The color in the LCH color space.

whiteReference

[number, number, number]

(Optional) The white reference color used for conversion. Defaults to WHITE_REFERENCE.

Returns: HSV

The color in the HSV color space.