Skip to content

rgbToHsl

rgbToHsl<S>(value): InSpace<HslCoords, S>

Defined in: packages/math-color/src/conversions/hsl-rgb.ts:42

Converts RGB to HSL values in the range [0, 1].

S extends string

InSpace<RgbCoords, S>

The RGB color in the range [0, 1].

InSpace<HslCoords, S>

The corresponding HSL color.