Convert Standard RGB (sRGB) to HLS
Description
All r/g/b values in [0., 1.], h in [0., 360.], l and s in [0., 1.]. From: http://wiki.beyondunreal.com/wiki/RGB_To_HLS_Conversion.
Usage
colorlib.sRGB_to_HLS(r, g, b)
Arguments
-
rnumpy.ndarray -
Intensities for red (
[0., 1.]) -
gnumpy.ndarray -
Intensities for green (
[0., 1.]) -
bnumpy.ndarray -
Intensities for blue (
[0., 1.])
Return
list: Returns a list of numpy.ndarrays with the corresponding coordinates in the HLS color space ([h, l, s]). Same length as the inputs.