colour.models.IPT_hue_angle#

colour.models.IPT_hue_angle(IPT: 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]], 360][source]#

Compute the hue angle in degrees from the IPT colourspace array.

Parameters:

IPT (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – IPT colourspace array.

Returns:

Hue angle in degrees.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

IPT

1

1

Range

Scale - Reference

Scale - 1

hue

360

1

References

[Fai13g]

Examples

>>> IPT = np.array([0.96907232, 1, 1.12179215])
>>> IPT_hue_angle(IPT)
48.2852074...