
Last chance! 50% off unlimited learning
Sale ends in
ColToHsv(col, alpha = FALSE)
colors
()),
a hexadecimal string of the form "#rrggbb" or "#rrggbbaa", or an integer i meaning palette()[i].
Non-srgb2hsv
and col2rgb
.
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.rgb2hsv
, ColToRgb
ColToHsv("peachpuff")
ColToHsv(c(blu = "royalblue", reddish = "tomato")) # names kept
ColToHsv(1:8)
Run the code above in your browser using DataLab