setChannel.RgbColor: Sets the color values in the specific channel

Description Usage Arguments Author(s) See Also

Description

Sets the color values in the specific channel. If there are less values than colors, the values will be looped over.

Usage

1
2
## S3 method for class 'RgbColor'
setChannel(this, channel, value, maxColorValue=1, ...)

Arguments

channel

A character string specifying which channel to assign to.

value

A vector of values to be assigned to the specified channel.

maxColorValue

Specifying on what range [0,maxColorValue] the vector value is in. All values will be mapped to [0,1]. This argument exists just for convenience.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

See also the "shortcut" methods *setRed(), *setGreen() and *setBlue(). For more information see RgbColor.


HenrikBengtsson/R.colors documentation built on May 6, 2019, 11:53 p.m.