Convert RGB to HLS
Description
Shortcut from RGB to HLS (not via sRGB). All r/g/b values in [0., 1.]
, h in [0., 360.]
, l and s in [0., 1.]
.
Usage
colorlib.RGB_to_HLS(r, g, b)
Arguments
-
r
numpy.ndarray
-
Intensities for red (
[0., 1.]
) -
g
numpy.ndarray
-
Intensities for green (
[0., 1.]
) -
b
numpy.ndarray
-
Intensities for blue (
[0., 1.]
)
Return
list
: Returns a list of numpy.ndarray
s with the corresponding coordinates in the HLS color space ([h, l, s]
). Same length as the inputs.