HclColor: Class representing colors in the (hue,chroma,luminance) space

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

Description

Package: R.colors
Class HclColor

Object
~~|
~~+--Color
~~~~~~~|
~~~~~~~+--ThreeDimensionalColor
~~~~~~~~~~~~|
~~~~~~~~~~~~+--HclColor

Directly known subclasses:

public static class HclColor
extends ThreeDimensionalColor

Class representing colors in the (hue,chroma,luminance) space.

Internally all colors are represented as (hue,chroma,luminance) in [0,1]x[0,1]x[0,1].

Usage

1
HclColor(hue=NULL, chroma=1, luminance=1, maxColorValue=1, correctOutOfRange=TRUE)

Arguments

hue

A vector of numeric in the range [0,maxColorValue].

chroma

(colorfulness) A vector of numeric in the range [0,maxColorValue].

luminance

A vector of numeric in the range [0,maxColorValue].

maxColorValue

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

correctOutOfRange

By default, if TRUE, generated colors that fall outside of the valid (red,green,blue) space, will be truncated. Otherwise, they will be set to NA.

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.

Details

The creation of this Color class was strongly inspired by Ross Ihaka's talk at DSC-2003 [1]

Fields and Methods

Methods:

getColors Gets the set of colors in the \#rrggbb format.
plotParallel -

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

References

[1] Ross Ihaka, Colour for Presentation Graphics, Proceedings of the 3rd International Workshop on Distributed Statistical Computing (DSC 2003), March 20-22, 2003, Technische Universität Wien, Vienna, Austria. http://www.ci.tuwien.ac.at/Conferences/DSC-2003/.
[2] Ross Ihaka, Perceptually-Based Color Choices, webpage, http://www.stat.auckland.ac.nz/~ihaka/colour/
[3] Ross Ihaka, Statistics 120 - Information Visualisation, webpage, http://www.stat.auckland.ac.nz/~ihaka/120/.

See Also

See also hcl in the colorspace package [1-3].


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