| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/colorspace.R |
| 3 |
\name{HSV} |
| 4 |
\alias{HSV} |
| 5 |
\title{Create HSV Colors} |
| 6 |
\usage{ |
| 7 |
HSV(H, S, V, names) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{H, S, V}{These arguments give the hue, saturation and value of the |
| 11 |
colors. The values can be provided in separate \code{H}, \code{S} and |
| 12 |
\code{V} vectors or in a three-column matrix passed as \code{H}.} |
| 13 |
|
| 14 |
\item{names}{A vector of names for the colors (by default the row names of |
| 15 |
\code{H} are used).} |
| 16 |
} |
| 17 |
\value{ |
| 18 |
An object of class \code{HSV} which inherits from class \code{color}. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
This function creates colors of class HSV; a subclass of the virtual |
| 22 |
\code{\link{color-class}} class. |
| 23 |
} |
| 24 |
\details{ |
| 25 |
This function creates colors in an HSV color space. The hues should |
| 26 |
lie between between 0 and 360, and the saturations and values should |
| 27 |
lie between 0 and 1. |
| 28 |
|
| 29 |
HSV is a relative color space; it is a transformation of an RGB color |
| 30 |
space. Conversion of HSV colors to any other color space must first |
| 31 |
involve a conversion to a specific RGB color space, for example the |
| 32 |
standard \code{\link{sRGB}} color space (IEC standard 61966). |
| 33 |
} |
| 34 |
\examples{ |
| 35 |
# A rainbow of full-intensity hues |
| 36 |
HSV(seq(0, 360, length.out = 13)[-13], 1, 1) |
| 37 |
} |
| 38 |
\seealso{ |
| 39 |
\code{\link{sRGB}}, \code{\link{RGB}}, \code{\link{XYZ}}, \code{\link{LAB}}, |
| 40 |
\code{\link{polarLAB}}, \code{\link{LUV}}, \code{\link{polarLUV}}. |
| 41 |
} |
| 42 |
\author{ |
| 43 |
Ross Ihaka |
| 44 |
} |
| 45 |
\keyword{color} |