Description Usage Arguments Value Author(s) References See Also Examples
Draw the gradient between Lab colors, as a large color patch on white background. The gradient is interpolated in Lab space, i.e. is perceptually uniform (see reference).
1 | drawGradient(col1, col2, rgb=TRUE, numcols=200)
|
col1 |
numeric vector of 3 values, either specifying RGB in [0,1] values, or Lab. Starting color for the gradient. |
col2 |
numeric vector of 3 values, either specifying RGB in [0,1] values, or Lab. Ending color for the gradient. |
rgb |
logical, determines if col1 and col2 are in RGB or Lab color space. |
numcols |
number of steps in the gradient (linear) interpolation. |
NULL
Pierrick Bruneau
Ware, C. (2004) Information visualization, from cognitive, perceptive, and visual cues point of view.
drawPatches
1 | drawGradient(c(1,0,0), c(0,1,0)) # gradient of one the human perceptuals channels (see reference)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.