Description Usage Arguments Details Author(s) See Also Examples
Converts wavelength in nm (visible light: 380:780 nm) to RGB. NOTE that this is not a fully correct spectrum, see Details.
1 | wavelength2RGB(wavelength)
|
wavelength |
the wavelength in nm to convert to RGB |
implemented following the java code posted at http://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb . Also see http://www.fourmilab.ch/documents/specrend/ for original code and why not all wavelengths can be converted to RGB.
Rainer Machne raim@tbi.univie.ac.at
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.