R/spec2rgb.R
spec2rgb.Rd
Calculates rgb values from spectra based on human colour matching functions.
spec2rgb(rspecdata, alpha = 1)
rspecdata |
(required) a data frame, possibly an object of class |
---|---|
alpha |
alpha value to use for colors (defaults to 1, opaque). |
A character vector consisting of hexadecimal colour values for passing to further plotting functions.
CIE(1932). Commission Internationale de l'Eclairage Proceedings, 1931. Cambridge: Cambridge University Press.