print(colour.UCS_to_uv(UCS)) print('\n') uv = (0.25895878, 0.34020896) message_box(('Converting to "xy" chromaticity coordinates from given ' '"CIE UCS" colourspace "uv" chromaticity coordinates:\n' '\n\t{0}'.format(uv))) print(colour.UCS_uv_to_xy(uv)) print('\n') message_box(('Converting to "CIE UVW" colourspace from given "CIE XYZ" ' 'tristimulus values:\n' '\n\t{0}'.format(XYZ))) print(colour.XYZ_to_UVW(XYZ)) print('\n') message_box(('Converting to "CIE Luv" colourspace from given "CIE XYZ" ' 'tristimulus values:\n' '\n\t{0}'.format(XYZ))) print(colour.XYZ_to_Luv(XYZ)) print('\n') Luv = (100.00000000, 64.73951819, 28.90956141) message_box(('Converting to "CIE XYZ" tristimulus values from given "CIE Luv" ' 'colourspace values:\n' '\n\t{0}'.format(Luv))) print(colour.Luv_to_XYZ(Luv))
print(colour.UCS_uv_to_xy(uv)) print('\n') xy = np.array([0.26414771, 0.37770001]) message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "xy" chromaticity coordinates:\n' '\n\t{0}'.format(xy))) print(colour.xy_to_UCS_uv(xy)) print('\n') message_box(('Converting to "CIE 1964 U*V*W*" colourspace from given' '"CIE XYZ" tristimulus values:\n' '\n\t{0}'.format(XYZ * 100))) print(colour.XYZ_to_UVW(XYZ * 100)) print('\n') UVW = np.array([-22.59840563, 5.45505477, 37.00411491]) message_box(('Converting to "CIE XYZ" tristimulus values from given' '"CIE 1964 U*V*W*" colourspace values:\n' '\n\t{0}'.format(UVW))) print(colour.UVW_to_XYZ(UVW) / 100) print('\n') message_box(('Converting to "CIE L*u*v*" colourspace from given "CIE XYZ" ' 'tristimulus values:\n' '\n\t{0}'.format(XYZ))) print(colour.XYZ_to_Luv(XYZ))