View source: R/w.length.range2rgb.r
w_length_range2rgb | R Documentation |
Calculates rgb values from spectra based on human color matching functions
w_length_range2rgb(
w.length,
sens = photobiology::ciexyzCMF2.spct,
color.name = NULL
)
w.length |
numeric vector of wavelengths (nm) of length 2. If longer, its range is used. |
sens |
chroma_spct Used as the chromaticity definition. |
color.name |
character Used for naming the rgb color definition(s) returned. |
A vector of colors defined using rgb()
. The numeric values of
the RGB components can be obtained by calling function
col2rgb
.
Other color functions:
rgb_spct()
,
w_length2rgb()
col2rgb(w_length_range2rgb(c(500,600)))
col2rgb(w_length_range2rgb(550))
col2rgb(w_length_range2rgb(500:600))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.