colour.RGB_to_HSL¶
-
colour.
RGB_to_HSL
(RGB)[source]¶ Converts from RGB colourspace to HSL colourspace.
Parameters: RGB (array_like) – RGB colourspace array. Returns: HSL array. Return type: ndarray Notes
Domain Scale - Reference Scale - 1 RGB
[0, 1] [0, 1] Range Scale - Reference Scale - 1 HSL
[0, 1] [0, 1] References
Examples
>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952]) >>> RGB_to_HSL(RGB) # doctest: +ELLIPSIS array([ 0.9960394..., 0.8734714..., 0.2435079...])