hsv
Hue, Saturation, Value Color Specification

### Description

Specifies colors using the hue/saturation/value color model.

### Usage

    hsv(h = 1, s = 1, v = 1, alpha = 1, gamma = 1)

### Arguments

h | a vector of numbers between 0 and 1 specifying the hue. 0 and 1 are red; between are orange, yellow, green, blue, indigo, and violet.
s | a vector of numbers between 0 and 1 specifying the saturation. Small numbers give washed-out colors.
v | a vector of numbers between 0 and 1 specifying the value. Small numbers give muddy colors.
alpha | a vector of numbers between 0 and 1 specifying the opacity. Zero is completely transparent.
gamma | a vector of positive numbers giving the gamma correction. The red, green, and blue components are raised to this power. (This argument is not in open-source R.)

Value
returns a vector of color strings as long as the longest of h, s, v, alpha, and gamma (except if one vector is zero long, the output is zero), giving the colors specified by the HSV parameterization.
The color strings have the format "#RRGGBB" or "#RRGGBBAA" where XX are two digit hexadecimal values (range 00-FF) for the red, green, blue, and possible alpha (opacity) components of the colors.
See Also
rgb2hsv, rainbow
Examples

    hsv(h=(0:4)/5)
    col2rgb(hsv(h=seq(0.5,1.5,len=9)%%1, s=0.5))

Package grDevices version 6.1.5-18
Package Index