CmykColor: Class representing colors in the (cyan,magenta,yellow,black)...

Description Usage Arguments Fields and Methods Author(s) References

Description

Package: R.colors
Class CmykColor

Object
~~|
~~+--Color
~~~~~~~|
~~~~~~~+--FourDimensionalColor
~~~~~~~~~~~~|
~~~~~~~~~~~~+--CmykColor

Directly known subclasses:

public static class CmykColor
extends FourDimensionalColor

Class representing colors in the (cyan,magenta,yellow,black) space.

Internally all colors are represented as (cyan,magenta,yellow,black) in [0,1]x[0,1]x[0,1]x[0,1].

Usage

1
CmykColor(cyan=NULL, magenta=NULL, yellow=NULL, black=NULL, maxColorValue=1)

Arguments

cyan

A vector of numeric, or a Color object. If a vector of numeric it specifies the amount of cyan in the range [0,maxColorValue]. If a Color object, the colors according to getColors() on that object will be used.

magenta

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

yellow

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

black

A vector that specifies the amount of black 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:

asRgbColor -
getColors -
maximizeBlack Maximizes the black channel to 'save' the other colors.
plotParallel -
setChannel Sets the color values in the specific channel.

Methods inherited from FourDimensionalColor:
getColorSpace

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] Borland Developer Support Staff, Converting a RGB color to a CMYK color, http://community.borland.com/article/0,1410,17948,00.html


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