Learn R Programming

colorspace (version 0.9)

color-class: Class "color"

Description

Objects from the class color represent colors in a number of color spaces. In particular there are subclasses of color which correspond to RGB, CIEXYZ, CIELUV, CIELAB and polar versions of the last two spaces.

Arguments

Objects from the Class

Objects can be created by calls to the functions RGB XYZ, LUV, LAB, polarLUV, and polarLAB. These are all subclasses of the virtual class color.

See Also

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

Examples

Run this code
x = RGB(runif(1000),runif(1000),runif(1000))
plot(as(x, "LUV"))

Run the code above in your browser using DataLab