@tempots/color

lab2hsv() function

Converts a color from LAB color space to HSV color space.

Signature:

lab2hsv: (lab: LAB, whiteReference?: [number, number, number]) => HSV

Parameters

Parameter

Type

Description

lab

LAB

The LAB color to convert.

whiteReference

[number, number, number]

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

Returns: HSV

The color converted to HSV color space.