""" Showcases *Munsell Renotation System* computations. """ import colour from colour.utilities.verbose import message_box message_box('"Munsell Renotation System" Computations') Y = 10.08 message_box(('Computing "Munsell" value using ' 'Priest, Gibson and MacNicholas (1920) method for given ' '"luminance" value:\n' '\n\t{0}'.format(Y))) print(colour.munsell_value_Priest1920(Y)) print(colour.munsell_value(Y, method='Priest 1920')) print('\n') message_box(('Computing "Munsell" value using ' 'Munsell, Sloan and Godlove (1933) method for given ' '"luminance" value:\n' '\n\t{0}'.format(Y))) print(colour.munsell_value_Munsell1933(Y)) print(colour.munsell_value(Y, method='Munsell 1933')) print('\n') message_box(('Computing "Munsell" value using Moon and Spencer (1943) ' 'method for given "luminance" value:\n' '\n\t{0}'.format(Y)))
Showcases *Munsell Renotation System* computations. """ import numpy as np import colour from colour.utilities import message_box message_box('"Munsell Renotation System" Computations') Y = 10.08 message_box(('Computing "Munsell" value using ' '"Priest, Gibson and MacNicholas (1920)" method for given ' '"luminance" value:\n' '\n\t{0}'.format(Y))) print(colour.munsell_value(Y, method='Priest 1920')) print(colour.notation.munsell_value_Priest1920(Y)) print('\n') message_box(('Computing "Munsell" value using ' '"Munsell, Sloan and Godlove (1933)" method for given ' '"luminance" value:\n' '\n\t{0}'.format(Y))) print(colour.munsell_value(Y, method='Munsell 1933')) print(colour.notation.munsell_value_Munsell1933(Y)) print('\n') message_box(('Computing "Munsell" value using "Moon and Spencer (1943)" ' 'method for given "luminance" value:\n'