| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/colorspace.R |
| 3 |
\name{XYZ} |
| 4 |
\alias{XYZ} |
| 5 |
\title{Create XYZ Colors} |
| 6 |
\usage{ |
| 7 |
XYZ(X, Y, Z, names) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{X, Y, Z}{these arguments give the X, Y and Z coordinates of the colors. |
| 11 |
The values can be provided in separate \code{X}, \code{Y} and \code{Z} |
| 12 |
vectors or in a three-column matrix passed as \code{X}.} |
| 13 |
|
| 14 |
\item{names}{A vector of names for the colors (by default the row names of |
| 15 |
\code{X} are used).} |
| 16 |
} |
| 17 |
\value{ |
| 18 |
An object of class \code{XYZ} which inherits from class \code{color}. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
This function creates colors of class XYZ; a subclass of the virtual |
| 22 |
\code{\link{color-class}} class. |
| 23 |
} |
| 24 |
\details{ |
| 25 |
The X, Y and Z values are the levels of the CIE primaries. These are scaled |
| 26 |
so that the luminance of the display white-point is 100. The white-point is |
| 27 |
taken to be D65, which means that its coordinates are 95.047, 100.000, |
| 28 |
108.883. |
| 29 |
} |
| 30 |
\examples{ |
| 31 |
## Generate white in XYZ space |
| 32 |
XYZ(95.047, 100.000, 108.883) |
| 33 |
} |
| 34 |
\seealso{ |
| 35 |
\code{\link{RGB}}, \code{\link{HSV}}, \code{\link{LAB}}, |
| 36 |
\code{\link{polarLAB}}, \code{\link{LUV}}, \code{\link{polarLUV}}. |
| 37 |
} |
| 38 |
\author{ |
| 39 |
Ross Ihaka |
| 40 |
} |
| 41 |
\keyword{color} |