@tempots/color > rgb2hsl
Converts an RGB color to HSL color.
Signature:
rgb2hsl: (rgb: RGB) => HSL
Parameter
Type
Description
rgb
RGB
The RGB color to convert.
Returns: HSL
The corresponding HSL color.