powered by
convert to rgb colors
as_rgb(x, ...)# S4 method for RGBColorPlane as_rgb(x)# S4 method for HexColorPlane as_rgb(x)# S4 method for ConstantColorPlane as_rgb(x)
# S4 method for RGBColorPlane as_rgb(x)
# S4 method for HexColorPlane as_rgb(x)
# S4 method for ConstantColorPlane as_rgb(x)
a numeric matrix of rgb components
the object to convert
extra args
cp <- IntensityColorPlane(seq(1,100), cols=rainbow(25)) cl <- map_colors(cp, irange=c(0,50)) rgbcols <- as_rgb(cl)
Run the code above in your browser using DataLab