getInterRGB: getInterRGB

Description Usage Arguments Value Author(s) See Also Examples

Description

Interpolate colors in RGB-specified bounds.

Usage

1
getInterRGB(vals, zeroColor, oneColor)

Arguments

vals

values in [0,1]. The resulting interpolated color will be value*oneColor + (1-value)*zeroColor, in Lab space.

zeroColor

the "zero bound" color, in any valid R color format (e.g. "yellow", "#00FF00", ...)

oneColor

the "one bound" color, in any valid R color format (e.g. "yellow", "#00FF00", ...)

Value

a vector of RGB colors in string format, e.g. "#BBFF00".

Author(s)

Pierrick Bruneau

See Also

drawGradient

Examples

1
res <- getInterRGB(runif(10), "yellow", "red")

Example output

Loading required package: grid
Loading required package: datautils
Loading required package: deldir
deldir 0.1-16
Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

patchPlot documentation built on May 1, 2019, 8:20 p.m.