colour.RGB_to_IHLS#

colour.RGB_to_IHLS(RGB: ArrayLike) numpy.ndarray[source]#

Convert from RGB colourspace to IHLS (Improved HLS) colourspace.

Parameters

RGB (ArrayLike) – RGB colourspace array.

Returns

HYS colourspace array.

Return type

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

RGB

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

HYS

[0, 1]

[0, 1]

References

[Han03]

Examples

>>> RGB = np.array([0.45595571, 0.03039702, 0.04087245])
>>> RGB_to_IHLS(RGB)  
array([ 6.2616051...,  0.1216271...,  0.4255586...])