powered by
This function returns a matrix with three columns which give the coordinates of a color in its natural color space.
coords(color)
A numeric matrix giving the coordinates of the color.
A color.
Ross Ihaka
RGB, XYZ, LAB, polarLAB, LUV, polarLUV, mixcolor.
RGB
XYZ
LAB
polarLAB
LUV
polarLUV
mixcolor
x <- sRGB(1, 0, 0) coords(as(x, "HSV"))
Run the code above in your browser using DataLab