colour.is_within_macadam_limits#
- colour.is_within_macadam_limits(xyY: ArrayLike, illuminant: Literal['A', 'C', 'D65'] | str = 'D65', tolerance: float = 100 * EPSILON) NDArrayFloat[source]#
Determine whether the specified CIE xyY colourspace array are within the MacAdam limits of the specified illuminant.
- Parameters:
- Returns:
Boolean array indicating whether the specified CIE xyY colourspace array is within MacAdam limits.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
xyY1
1
Examples
>>> is_within_macadam_limits(np.array([0.3205, 0.4131, 0.51]), "A") array(True, dtype=bool) >>> a = np.array([[0.3205, 0.4131, 0.51], [0.0005, 0.0031, 0.001]]) >>> is_within_macadam_limits(a, "A") array([ True, False], dtype=bool)