//tvlib/org.mjdev.tvlib.ui.toolkit/hsl
hsl
[androidJvm]\ fun Color.hsl(hue: Float? = null, saturation: Float? = null, lightness: Float? = null, alpha: Float? = null): Color
Return a copy of Color from hue, saturation, and lightness (HSL representation).
Parameters
androidJvm
| hue | The color value in the range (0..360), where 0 is red, 120 is green, and 240 is blue; default value is null; which makes is unaltered. |
| saturation | The amount of hue represented in the color in the range (0..1), where 0 has no color and 1 is fully saturated; default value is null; which makes is unaltered. |
| lightness | A range of (0..1) where 0 is black, 0.5 is fully colored, and 1 is white; default value is null; which makes is unaltered. |