as_rgb {colorplane}R Documentation

convert to rgb colors

Description

convert to rgb colors

Usage

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)

Arguments

x

the object to convert

...

extra args

Value

a numeric matrix of rgb components

Examples

cp <- IntensityColorPlane(seq(1,100), cols=rainbow(25))
cl <- map_colors(cp, irange=c(0,50))
rgbcols <- as_rgb(cl)

[Package colorplane version 0.5.0 Index]