psychopy.tools.colorspacetools.dkl2rgb

psychopy.tools.colorspacetools.dkl2rgb(dkl, conversionMatrix=None)[source]

Convert from DKL color space (Derrington, Krauskopf & Lennie) to RGB.

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

Examples

Converting a single DKL color to RGB:

dkl = [90, 0, 1]
rgb = dkl2rgb(dkl, conversionMatrix)

Back to top