-
Notifications
You must be signed in to change notification settings - Fork 0
hsl
milan jurkulák edited this page May 2, 2024
·
1 revision
//tvlib/org.mjdev.tvlib.ui.toolkit/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).
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. |