as_rgb {colorplane} | R Documentation |
convert to rgb colors
as_rgb(x, ...)
## S4 method for signature 'RGBColorPlane'
as_rgb(x)
## S4 method for signature 'HexColorPlane'
as_rgb(x)
## S4 method for signature 'ConstantColorPlane'
as_rgb(x)
x |
the object to convert |
... |
extra args |
a numeric matrix of rgb components
cp <- IntensityColorPlane(seq(1,100), cols=rainbow(25))
cl <- map_colors(cp, irange=c(0,50))
rgbcols <- as_rgb(cl)