toHSL

open override fun toHSL(): Color.HSL(source)

Converts the color to the Hue-Saturation-Lightness (HSL) space.

If the color is currently defined in a different space, this conversion may result in a loss of precision (e.g., converting from RGB to HSL and back again may result in a slightly different color).

Return

the closest representation of the current color in the HSL space