Description Usage Arguments Value Author(s) See Also Examples
Interpolate colors in RGB-specified bounds.
1 | getInterRGB(vals, zeroColor, oneColor)
|
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", ...) |
a vector of RGB colors in string format, e.g. "#BBFF00".
Pierrick Bruneau
drawGradient
1 | res <- getInterRGB(runif(10), "yellow", "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.