metersToRGB

pyvsim.Utils.metersToRGB(wl)[source]

Converts light wavelength to a RGB vector, the algorithm comes from: This blog

Parameters :

wl : scalar or numpy.ndarray \((N)\)

The wavelength in meters

Returns :

[R,G,B] : numpy.ndarray \((N,3)\)

The normalized (0..1) RGB value for this wavelength

This Page