R Color to HSV Conversion
ColToHsv transforms colors from R color into HSV space (hue/saturation/value).
ColToHsv(col, alpha = FALSE)
col |
vector of any of the three kind of R colors, i.e., either a color name (an element of |
alpha |
logical value indicating whether alpha channel (opacity) values should be returned. |
Value (brightness) gives the amount of light in the color. Hue describes the dominant wavelength. Saturation is the amount of Hue mixed into the color.
An HSV colorspace is relative to an RGB colorspace, which in R is sRGB, which has an implicit gamma correction.
A matrix with a column for each color. The three rows of the matrix indicate hue, saturation and value and are named "h", "s", and "v" accordingly.
Andri Signorell <andri@signorell.net>
ColToHsv("peachpuff") ColToHsv(c(blu = "royalblue", reddish = "tomato")) # names kept ColToHsv(1:8)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.