File: XYZ.Rd

package info (click to toggle)
r-cran-colorspace 1.4-0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,588 kB
  • sloc: ansic: 1,206; makefile: 5
file content (41 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download | duplicates (4)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colorspace.R
\name{XYZ}
\alias{XYZ}
\title{Create XYZ Colors}
\usage{
XYZ(X, Y, Z, names)
}
\arguments{
\item{X, Y, Z}{these arguments give the X, Y and Z coordinates of the colors.
The values can be provided in separate \code{X}, \code{Y} and \code{Z}
vectors or in a three-column matrix passed as \code{X}.}

\item{names}{A vector of names for the colors (by default the row names of
\code{X} are used).}
}
\value{
An object of class \code{XYZ} which inherits from class \code{color}.
}
\description{
This function creates colors of class XYZ; a subclass of the virtual
\code{\link{color-class}} class.
}
\details{
The X, Y and Z values are the levels of the CIE primaries.  These are scaled
so that the luminance of the display white-point is 100.  The white-point is
taken to be D65, which means that its coordinates are 95.047, 100.000,
108.883.
}
\examples{
## Generate white in XYZ space
XYZ(95.047, 100.000, 108.883)
}
\seealso{
\code{\link{RGB}}, \code{\link{HSV}}, \code{\link{LAB}},
\code{\link{polarLAB}}, \code{\link{LUV}}, \code{\link{polarLUV}}.
}
\author{
Ross Ihaka
}
\keyword{color}