colour.is_within_pointer_gamut#
- colour.is_within_pointer_gamut(XYZ: ArrayLike, tolerance: float = 100 * EPSILON) NDArrayFloat [source]#
Return whether given CIE XYZ tristimulus values are within Pointer’s Gamut volume.
- Parameters:
XYZ (ArrayLike) – CIE XYZ tristimulus values.
tolerance (float) – Tolerance allowed in the inside-triangle check.
- Returns:
Whether given CIE XYZ tristimulus values are within Pointer’s Gamut volume.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
XYZ
[0, 1]
[0, 1]
Examples
>>> import numpy as np >>> is_within_pointer_gamut(np.array([0.3205, 0.4131, 0.5100])) array(True, dtype=bool) >>> a = np.array([[0.3205, 0.4131, 0.5100], [0.0005, 0.0031, 0.0010]]) >>> is_within_pointer_gamut(a) array([ True, False], dtype=bool)