RGBToHSL
open fun RGBToHSL(@IntRange(from = 0, to = 255) r: Int, @IntRange(from = 0, to = 255) g: Int, @IntRange(from = 0, to = 255) b: Int, outHsl: @NonNull Array<Float>)(source)
Convert RGB components to HSL (hue-saturation-lightness).
- outHsl[0] is Hue [0, 360)
- outHsl[1] is Saturation [0, 1]
- outHsl[2] is Lightness [0, 1]
Parameters
r
red component value [0, 255]
g
green component value [0, 255]
b
blue component value [0, 255]
outHsl
3-element array which holds the resulting HSL components