wavelength2RGB: Turn a wavelength (in nm) in to an RGB vector.

Description Usage Arguments Value

Description

Code adapted from http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm

Usage

1
wavelength2RGB(wavelength)

Arguments

wavelength

a numerical wavelength to convert to RGB.

Value

a vector of three numeric values representing the RGB components.


ajfedorec/wavelength2colour documentation built on May 10, 2019, 8:31 a.m.