Learn R Programming

patchPlot (version 0.1.5)

drawSinglePatch: drawSinglePatch

Description

Probes one RGB or Lab color, by diusplaying a large colored patch on a white background.

Usage

drawSinglePatch(vec, rgb=TRUE)

Arguments

vec
numeric vector of the color to draw (RGB in [0,1], or Lab values).
rgb
logical value that indicates RGB values if TRUE (Lab otherwise).

Value

NULL, and opens a new X11 window.

See Also

drawGradient drawPatches

Examples

Run this code
drawSinglePatch(c(0.3, 0.05, 0.7))

Run the code above in your browser using DataLab