| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/colorspace.R |
| 3 |
\name{whitepoint} |
| 4 |
\alias{whitepoint} |
| 5 |
\title{Access or Modify the Whitepoint} |
| 6 |
\usage{ |
| 7 |
whitepoint(white, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{white, ...}{Either missing (to query the whitepoint) or |
| 11 |
\code{NULL} or a specification of the XYZ coordinates of the whitepoint |
| 12 |
(to set the whitepoint, see examples). \code{NULL} corresponds to |
| 13 |
CIE D65 with XYZ coordinates 95.047, 100.000, 108.883.} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
\code{whitepoint} returns an XYZ color object for the whitepoint |
| 17 |
(invisibly in case a new whitepoint was set). |
| 18 |
} |
| 19 |
\description{ |
| 20 |
This function can be used to control the single global whitepoint |
| 21 |
that affects all color conversions within the package (that require |
| 22 |
a whitepoint, i.e., go through XYZ). |
| 23 |
} |
| 24 |
\examples{ |
| 25 |
# query current whitepoint (D65 by default) |
| 26 |
whitepoint() |
| 27 |
|
| 28 |
# Illuminant E |
| 29 |
whitepoint(XYZ(100, 100, 100)) |
| 30 |
|
| 31 |
# equivalently |
| 32 |
whitepoint(100, 100, 100) |
| 33 |
whitepoint(c(100, 100, 100)) |
| 34 |
whitepoint(cbind(100, 100, 100)) |
| 35 |
|
| 36 |
whitepoint() |
| 37 |
|
| 38 |
## reset |
| 39 |
whitepoint(NULL) |
| 40 |
whitepoint() |
| 41 |
} |
| 42 |
\seealso{ |
| 43 |
\code{\link{XYZ}} and \link{color-class}. |
| 44 |
} |
| 45 |
\keyword{color} |