This function returns a matrix with three columns which give the coordinates of a color in its natural color space.

coords(color)

Arguments

color

A color.

Value

A numeric matrix giving the coordinates of the color.

See also

Author

Ross Ihaka

Examples

x <- sRGB(1, 0, 0)
coords(as(x, "HSV"))
#>        H S V
#> [1,] 360 1 1