| hex2RGB {colorspace} | R Documentation |
This function takes a vector of strings of the form
"#RRGGBB" (hexdecimal color descriptions) into
RGB objects.
hex2RGB(x, gamma = 2.2)
x |
a vector of hexdecimal color descriptions. |
gamma |
the display gamma value. Passing a value
of NA results in no gamma correction being
applied. |
This function converts device dependent color descriptions of the
form "#RRGGBB" into device independent sRGB colour descriptions.
An RGB object describing the colours.
Ross Ihaka
hex,
RGB,
HSV,
XYZ,
polarLAB,
LUV,
polarLUV.
rgb = hex2RGB(c("#FF0000","#00FF00", "#0000FF"))