RgbColor: Class representing colors in the (red,green,blue) space

Description Usage Arguments Fields and Methods Author(s) See Also

Description

Package: R.colors
Class RgbColor

Object
~~|
~~+--Color
~~~~~~~|
~~~~~~~+--ThreeDimensionalColor
~~~~~~~~~~~~|
~~~~~~~~~~~~+--RgbColor

Directly known subclasses:

public static class RgbColor
extends ThreeDimensionalColor

Class representing colors in the (red,green,blue) space.

Internally all colors are represented as (red,green,blue) in [0,1]x[0,1]x[0,1].

Usage

1
RgbColor(red=NULL, green=NULL, blue=NULL, maxColorValue=1)

Arguments

red

A vector of numeric or color character string, or a Color object. If a vector of numeric it specifies the amount of red in the range [0,maxColorValue]. If a vector of color characters string, they will be converted into (red,green,blue) in [0,1]. If a Color object, the colors according to getColors() on that object will be used.

green

A vector that specifies the amount of green in the range [0,maxColorValue].

blue

A vector that specifies the amount of blue in the range [0,maxColorValue].

maxColorValue

A numeric value specifying the maximum value the values in the different channels can take.

Moreover, the number of colors will be the same as the length of the longest vector of the above. If some of the other vectors are shorter, their values will be looped over to get equal lengths.

Fields and Methods

Methods:

getColors -
plotParallel -
setBlue Sets the color values in the blue channel.
setChannel Sets the color values in the specific channel.
setGreen Sets the color values in the green channel.
setRed Sets the color values in the red channel.

Methods inherited from ThreeDimensionalColor:
getColorSpace, plot3d

Methods inherited from Color:
[, as.character, display, drawColorRamp, getColorFilter, getColors, getColorSpace, length, palette, plotParallel, seq, setColorFilter, viewThroughColorFilter

Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, registerFinalizer, save

Author(s)

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

See Also

rgb.


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