Convert HSV Color Specification to RGB

DESCRIPTION:

Create a character vector of RGB values based on hue, saturation, and value (HSV).

USAGE:

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

OPTIONAL ARGUMENTS:

h
Hue specified as a numeric between 0 and 1. Single value or vector.
s
Saturation specified as a numeric between 0 and 1. Single value or vector.
v
Value specified as a numeric between 0 and 1. Single value or vector. This is also called the brightness.
gamma
Gamma correction specified as a numeric between 0 and 1. Single value or vector.
alpha
Alpha specified as a numeric between 0 and 1. Single value or vector.

VALUE:

Character vector of RGB values such as "#FF0000" if alpha not specified, or "#FF000080" including alpha.

SIDE EFFECTS:

None.

SEE ALSO:

, , .

EXAMPLES:

# Piechart with colors generated using hsv()
pie(rep(1, 16), col=hsv(h=seq(0.1, 0.9, length=16), s=0.75, v=1))