coords: Extract the Numerical Coordinates of a Color

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
coords(color)

Arguments

color

A color.

Value

A numeric matrix giving the coordinates of the color.

Author(s)

Ross Ihaka

See Also

RGB, XYZ, LAB, polarLAB, LUV, polarLUV, mixcolor.

Examples

1
2
x <- RGB(1, 0, 0)
coords(as(x, "HSV"))

Example output

       H S V
[1,] 360 1 1

colorspace documentation built on May 2, 2019, 12:49 p.m.