@tempots/color
srgb2luv() function
Converts an sRGB color to LUV color space.
Signature:
srgb2luv: (srgb: SRGB, whiteReference?: [number, number, number]) => LUV
Parameters
Parameter |
Type |
Description |
---|---|---|
srgb |
The sRGB color to convert. | |
whiteReference |
[number, number, number] |
(Optional) The white reference used for the conversion. Defaults to WHITE_REFERENCE. |
Returns: LUV
The converted color in LUV color space.