Description Usage Arguments Value Author(s) Source Examples
Converts a given wavelength of light to an approximate RGB color value, using black in the invisible range.
1 | wavelength2col(wavelength)
|
wavelength |
wavelength value (or vector), in nanometers. |
Returns a color string or vector of color strings with the same number of elements as wavelength
.
Danail Obreschkow
Smoothed implementation of the original Fortran version by Dan Bruton (http://www.physics.sfasu.edu/astro/color/spectra.html) and the R-function by Michael Friendly (https://gist.github.com/friendly).
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.