drawGradient: drawGradient

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
drawGradient(col1, col2, rgb=TRUE, numcols=200)

Arguments

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.

Value

NULL

Author(s)

Pierrick Bruneau

References

Ware, C. (2004) Information visualization, from cognitive, perceptive, and visual cues point of view.

See Also

drawPatches

Examples

1
drawGradient(c(1,0,0), c(0,1,0)) # gradient of one the human perceptuals channels (see reference)

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