psychopy.tools.colorspacetools.lms2rgb

psychopy.tools.colorspacetools.lms2rgb(lms_Nx3, conversionMatrix=None)[source]

Convert from cone space (Long, Medium, Short) to RGB.

Requires a conversion matrix, which will be generated from generic Sony Trinitron phosphors if not supplied (note that you will not get an accurate representation of the color space unless you supply a conversion matrix)

usage:

rgb_Nx3 = lms2rgb(dkl_Nx3(el,az,radius), conversionMatrix)

Back to top