[ top | up ]
RGB Color Specification
Syntax
rgb(red, green, blue, names=NULL)
Description
This function creates ``colors'' corresponding to
the given intensities of the red, green and blue primaries
(the intensities must lie between zero and one).
The names argument may be used to provide names for the
colors.
The values returned by rgb
can be used with a
col=
specification in graphics functions or in par
.
See Also
rainbow
, hsv
, gray
.