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