"#RRGGBB"
(hexdecimal color descriptions) into
RGB objects.hex2RGB(x, gamma = 2.2)
NA
results in no gamma correction being
applied."#RRGGBB"
into device independent sRGB colour descriptions.hex
,
RGB
,
HSV
,
XYZ
,
polarLAB
,
LUV
,
polarLUV
.rgb = hex2RGB(c("#FF0000","#00FF00", "#0000FF"))
Run the code above in your browser using DataLab