as_rgb-methods: convert to rgb colors

as_rgbR 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)

bbuchsbaum/colorplane documentation built on March 12, 2023, 8:11 a.m.