\Header{hsv}{HSV Color Specification}
\keyword{color}{hsv}
\keyword{dplot}{hsv}
\begin{Usage}
\begin{verbatim}
hsv(h=1, s=1, v=1, gamma=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{h,s,v}] numeric vectors of values in the range
\texttt{[0,1]} for ``hue'', ``saturation'' and ``value''
to be combined to form a vector of colors.  Values in shorter
arguments are recycled.
\item[\texttt{gamma}] a ``gamma correction'', see ...
\end{ldescription}
\end{Arguments}
\begin{Value}
This function creates a vector of ``colors'' corresponding to
the given values in HSV space.  The values returned by \texttt{hsv}
can be used with a \texttt{col=} specification in graphics functions or in
\texttt{par}.\end{Value}
\begin{SeeAlso}
\texttt{\Link{rainbow}}, \texttt{\Link{rgb}}, \texttt{\Link{gray}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
hsv(.5,.5,.5)

## Look at gamma effect:
n <- 20;  y <- -sin(3*pi*((1:n)-1/2)/n)
op <- par(mfrow=c(3,2),mar=rep(1.5,4))
for(gamma in c(.4, .6, .8, 1, 1.2, 1.5))
  plot(y,axes=F,frame.plot=T,xlab="",ylab="",pch=21,cex=30,
       bg = rainbow(n, start=.85, end=.1, gamma = gamma),
       main = paste("Red tones;  gamma=",format(gamma)))
par(op)
\end{ExampleCode}
\end{Examples}

