coords {colorspace} | R Documentation |
This function returns a matrix with three columns which give the coordinates of a color in its natural color space.
coords(color)
color |
A color. |
A numeric matrix giving the coordinates of the color.
Ross Ihaka.
RGB
,
XYZ
,
LAB
,
polarLAB
,
LUV
,
polarLUV
,
mixcolor
.
x = RGB(1, 0, 0) coords(as(x, "HSV"))