| Line 11... |
Line 11... |
| 11 |
\arguments{
|
11 |
\arguments{
|
| 12 |
\item{h,s,v}{numeric vectors of values in the range \code{[0,1]} for
|
12 |
\item{h,s,v}{numeric vectors of values in the range \code{[0,1]} for
|
| 13 |
\dQuote{hue}, \dQuote{saturation} and \dQuote{value} to be combined
|
13 |
\dQuote{hue}, \dQuote{saturation} and \dQuote{value} to be combined
|
| 14 |
to form a vector of colors. Values in shorter arguments are
|
14 |
to form a vector of colors. Values in shorter arguments are
|
| 15 |
recycled.}
|
15 |
recycled.}
|
| 16 |
\item{gamma}{a \dQuote{gamma correction}}
|
16 |
\item{gamma}{a \dQuote{gamma correction} exponent, \eqn{\gamma}}
|
| 17 |
}
|
17 |
}
|
| 18 |
\value{
|
18 |
\value{
|
| 19 |
This function creates a vector of \dQuote{colors} corresponding to the
|
19 |
This function creates a vector of \dQuote{colors} corresponding to the
|
| 20 |
given values in HSV space. The values returned by \code{hsv} can be
|
20 |
given values in HSV space. The values returned by \code{hsv} can be
|
| 21 |
used with a \code{col=} specification in graphics functions or in
|
21 |
used with a \code{col=} specification in graphics functions or in
|
| 22 |
\code{par}.
|
22 |
\code{par}.
|
| 23 |
}
|
23 |
}
|
| 24 |
\section{Gamma correction}{
|
24 |
\section{Gamma correction}{
|
| 25 |
For each color, \eqn{(r,g,b)} in RGB space (with all values in \eqn{[0,1]}),
|
25 |
For each color, \eqn{(r,g,b)} in RGB space (with all values in \eqn{[0,1]}),
|
| 26 |
the final color corresponds to \eqn{(r^gamma, g^gamma, b^gamma)}.
|
26 |
the final color corresponds to \eqn{(r^{\gamma}, g^{\gamma}, b^{\gamma})}.
|
| 27 |
}
|
27 |
}
|
| 28 |
\seealso{
|
28 |
\seealso{
|
| 29 |
\code{\link{rainbow}},
|
29 |
\code{\link{rainbow}},
|
| 30 |
\code{\link{rgb}},
|
30 |
\code{\link{rgb}},
|
| 31 |
\code{\link{gray}}.
|
31 |
\code{\link{gray}}.
|