File: LUV.Rd

package info (click to toggle)
r-cran-colorspace 2.0-0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,732 kB
  • sloc: ansic: 1,200; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 1,516 bytes parent folder | download
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
46
47
48
49
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colorspace.R
\name{LUV}
\alias{LUV}
\title{Create LUV Colors}
\usage{
LUV(L, U, V, names)
}
\arguments{
\item{L, U, V}{these arguments give the L, U and V coordinates of the colors.
The values can be provided in separate \code{L}, \code{U} and \code{V}
vectors or in a three-column matrix passed as \code{L}.}

\item{names}{a vector of names for the colors (by default the row names of
\code{L} are used).}
}
\value{
An object of class \code{LUV} which inherits from class \code{color}.
}
\description{
This function creates colors of class ``LUV''; a subclass of the virtual
\code{\link{color-class}} class.
}
\details{
The \code{L}, \code{U} and \code{V} values give the coordinates of the
colors in the CIE (1976) \eqn{L^*u^*v^*}{L*u*v*} space.  This is a
transformation of the 1931 CIE XYZ space which attempts to produce
perceptually based axes.  Luminance takes values between 0 and 100, and the other coordinates 
typically take values between -100 and 100, although these values can also
be exceeded by highly saturated colors. The \eqn{u} and \eqn{v}
coordinates measure positions on green/red and blue/yellow axes.
}
\examples{
## Show the LUV space
set.seed(1)
x <- RGB(runif(1000), runif(1000), runif(1000))
y <- as(x, "LUV")
head(x)
head(y)
plot(y)
}
\seealso{
\code{\link{RGB}}, \code{\link{HSV}}, \code{\link{XYZ}},
\code{\link{LAB}}, \code{\link{polarLAB}}, \code{\link{polarLUV}}.
}
\author{
Ross Ihaka
}
\keyword{color}