getRgbFromWavelength.Colors: Create RGB colors from data

Description Usage Arguments Value Author(s) References See Also Examples

Description

Because the concept of colors is all about spectroscopy, the biology and physics of the human eye and the brain's perception of the neurological signals, there is no unique one-to-one mapping between wavelength and (R,G,B) values.

Usage

1
Colors$getRgbFromWavelength(wavelength, maxValue=255, ...)

Arguments

wavelength

Vector of wavelengths to be converted into (R,G,B) values.

...

Not used.

Value

Returns a matrix with the three rows R, G and B corresponding to the red, green and blue intensities.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

References

Dan Bruton, Color Science, http://www.physics.sfasu.edu/astro/color.html, 2002.

efg's Computer Lab, http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm, 2002.

See Also

For more information see Colors.

Examples

1
## Not run: # See help(WavelengthColor) in the R.classes package

HenrikBengtsson/R.graphics documentation built on May 6, 2019, 11:53 p.m.