Debian Codegraph @

man/polarLUV.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/colorspace.R
3 \name{polarLUV}
4 \alias{polarLUV}
5 \alias{HCL}
6 \title{Create polarLUV (HCL) Colors}
7 \usage{
8 polarLUV(L, C, H, names)
9 }
10 \arguments{
11 \item{L, C, H}{these arguments give the L, C and H coordinates of the colors.
12 The values can be provided in separate \code{L}, \code{C} and \code{H}
13 vectors or in a three-column matrix passed as \code{L}.}
14
15 \item{names}{A vector of names for the colors (by default the row names of
16 \code{L} are used).}
17 }
18 \value{
19 An object of class \code{polarLUV} which inherits from class \code{color}.
20 }
21 \description{
22 This function creates colors of class ``polarLUV''; a subclass of the
23 virtual \code{\link{color-class}} class.
24 }
25 \details{
26 The polarLUV space is a transformation of the CIE \eqn{L^*u^*v^*}{L*u*v*}
27 space so that the \eqn{u} and \eqn{v} values are converted to polar
28 coordinates. The radial component \eqn{C} measures chroma and the angular
29 coordinate \eqn{H} is measures hue. It is also known as the HCL
30 (hue-chroma-luminance) space.
31 }
32 \examples{
33 ## Show the polarLUV space
34 set.seed(1)
35 x <- sRGB(runif(1000), runif(1000), runif(1000))
36 y <- as(x, "polarLUV")
37 head(x)
38 head(y)
39 plot(y)
40 }
41 \seealso{
42 \code{\link{RGB}}, \code{\link{HSV}}, \code{\link{XYZ}},
43 \code{\link{LAB}}, \code{\link{polarLAB}}, \code{\link{LUV}},
44 \code{\link{polarLUV}}.
45 }
46 \author{
47 Ross Ihaka
48 }
49 \keyword{color}