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

Description Usage Arguments Value

View source: R/wavelength2RGB.R

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.


ucl-cssb/wavelength2colour documentation built on May 3, 2019, 2:22 p.m.