Debian Codegraph @

man/coords.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/colorspace.R
3 \name{coords}
4 \alias{coords}
5 \title{Extract the Numerical Coordinates of a Color}
6 \usage{
7 coords(color)
8 }
9 \arguments{
10 \item{color}{A color.}
11 }
12 \value{
13 A numeric matrix giving the coordinates of the color.
14 }
15 \description{
16 This function returns a matrix with three columns which give the coordinates
17 of a color in its natural color space.
18 }
19 \examples{
20 x <- sRGB(1, 0, 0)
21 coords(as(x, "HSV"))
22 }
23 \seealso{
24 \code{\link{RGB}}, \code{\link{XYZ}}, \code{\link{LAB}},
25 \code{\link{polarLAB}}, \code{\link{LUV}}, \code{\link{polarLUV}},
26 \code{\link{mixcolor}}.
27 }
28 \author{
29 Ross Ihaka
30 }
31 \keyword{color}