getInterRGB: getInterRGB

Description Usage Arguments Value Author(s) See Also Examples

View source: R/functions.R

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

patchPlot documentation built on May 29, 2017, 11:05 a.m.