colour.xyY_to_munsell_colour#
- colour.xyY_to_munsell_colour(xyY: Domain1, hue_decimals: int = 1, value_decimals: int = 1, chroma_decimals: int = 1, method: Literal['Centore 2014', 'ONNX'] | str = 'Centore 2014') str | NDArrayStr[source]#
Convert from CIE xyY colourspace to Munsell colour notation.
- Parameters:
xyY (Domain1) – CIE xyY colourspace array representing chromaticity coordinates and luminance.
hue_decimals (int) – Number of decimal places for formatting the hue component.
value_decimals (int) – Number of decimal places for formatting the value component.
chroma_decimals (int) – Number of decimal places for formatting the chroma component.
method (Literal['Centore 2014', 'ONNX'] | str) – Computation method.
- Returns:
Munsell colour notation formatted as “H V/C” where H is hue, V is value, and C is chroma.
- Return type:
strornumpy.NDArrayFloat
Notes
Domain
Scale - Reference
Scale - 1
xyY1
1
References
Examples
>>> import numpy as np >>> xyY = np.array([0.38736945, 0.35751656, 0.59362000]) >>> xyY_to_munsell_colour(xyY) '4.2YR 8.1/5.3'