powered by
This function returns the RGB values for a source spectrum.
rgb_spct(spct, sens = photobiology::ciexyzCMF2.spct, color.name = NULL)
A color defined using rgb(). The numeric values of the RGB components can be obtained
rgb()
an object of class "source_spct"
a chroma_spct object with variables w.length, x, y, and z, giving the CC or CMF definition (default is the proposed human CMF according to CIE 2006.)
character string for naming the rgb color definition
Other color functions: w_length2rgb(), w_length_range2rgb()
w_length2rgb()
w_length_range2rgb()
rgb_spct(sun.spct)
Run the code above in your browser using DataLab