message_box(('Converting to "CCT" and "D_uv" from given "CIE UCS" colourspace ' '"uv" chromaticity coordinates using Robertson (1968) method:\n' '\n\t{0}'.format(uv))) print(colour.uv_to_CCT_Robertson1968(uv)) print(colour.uv_to_CCT(uv, method='Robertson 1968')) print('\n') CCT, D_uv = 6503.49254150, 0.00320598 message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "CCT" and "D_uv" using ' 'Ohno (2013) method:\n' '\n\t({0}, {1})'.format(CCT, D_uv))) print(colour.CCT_to_uv_Ohno2013(CCT, D_uv, cmfs=cmfs)) print(colour.CCT_to_uv(CCT, D_uv, cmfs=cmfs)) print('\n') message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "CCT" and "D_uv" using Robertson (1968) ' 'method:\n' '\n\t({0}, {1})'.format(CCT, D_uv))) print(colour.CCT_to_uv_Robertson1968(CCT, D_uv)) print(colour.CCT_to_uv(CCT, D_uv, method='Robertson 1968')) print('\n') xy = colour.ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65'] message_box(('Converting to "CCT" from given "xy" chromaticity coordinates ' 'using McCamy (1992) method:\n'
message_box(('Converting to "CCT" and "D_uv" from given "CIE UCS" colourspace ' '"uv" chromaticity coordinates using "Robertson (1968)" method:\n' '\n\t{0}'.format(uv))) print(colour.uv_to_CCT_Robertson1968(uv)) print(colour.uv_to_CCT(uv, method='Robertson 1968')) print('\n') CCT, D_uv = 6503.49254150, 0.00320598 message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "CCT" and "D_uv" using ' '"Ohno (2013)" method:\n' '\n\t({0}, {1})'.format(CCT, D_uv))) print(colour.CCT_to_uv_Ohno2013(CCT, D_uv, cmfs=cmfs)) print(colour.CCT_to_uv(CCT, D_uv=D_uv, cmfs=cmfs)) print('\n') message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "CCT" and "D_uv" using ' '"Robertson (1968)" method:\n' '\n\t({0}, {1})'.format(CCT, D_uv))) print(colour.CCT_to_uv_Robertson1968(CCT, D_uv)) print(colour.CCT_to_uv(CCT, D_uv=D_uv, method='Robertson 1968')) print('\n') message_box(('Converting to "CIE UCS" colourspace "uv" chromaticity ' 'coordinates from given "CCT" using "Krystek (1985)" method:\n' '\n\t({0})'.format(CCT)))
print("\n") message_box( f'Converting to "CCT" and "D_uv" from given "CIE UCS" colourspace "uv" ' f'chromaticity coordinates using "Robertson (1968)" method:\n\n\t{uv}') print(colour.uv_to_CCT(uv, method="Robertson 1968")) print(colour.temperature.uv_to_CCT_Robertson1968(uv)) print("\n") CCT_D_uv = [6503.49254150, 0.00320598] message_box( f'Converting to "CIE UCS" colourspace "uv" chromaticity coordinates from ' f'given "CCT" and "D_uv" using "Ohno (2013)" method:\n\n\t{CCT_D_uv}') print(colour.CCT_to_uv(CCT_D_uv, cmfs=cmfs)) print(colour.temperature.CCT_to_uv_Ohno2013(CCT_D_uv, cmfs=cmfs)) print("\n") message_box( f'Converting to "CIE UCS" colourspace "uv" chromaticity coordinates from ' f'given "CCT" and "D_uv" using "Robertson (1968)" method:\n\n\t{CCT_D_uv}') print(colour.CCT_to_uv(CCT_D_uv, method="Robertson 1968")) print(colour.temperature.CCT_to_uv_Robertson1968(CCT_D_uv)) print("\n") CCT = 6503.49254150 message_box( f'Converting to "CIE UCS" colourspace "uv" chromaticity coordinates from '