colour.RGB_to_IHLS#
- colour.RGB_to_IHLS(RGB: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#
Convert from RGB colourspace to IHLS (Improved HLS) colourspace.
- Parameters:
RGB (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – RGB colourspace array.
- Returns:
HYS colourspace array.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
RGB1
1
Range
Scale - Reference
Scale - 1
HYS1
1
References
[Han03]
Examples
>>> RGB = np.array([0.45595571, 0.03039702, 0.04087245]) >>> RGB_to_IHLS(RGB) array([ 6.2616051..., 0.1216271..., 0.4255586...])