cranvas (version 0.8.5)

draw_brush: Draw the brush rectangle

Description

Draw a rectangle with a spot according to the information in the meta data.

Usage

draw_brush(layer, painter, data, meta)

Arguments

layer,painter
the painter of the layer on which to draw the brush
data
the data created by qdata; a brush object is in brush(data); the color and line width of the brush are stored in this object
meta
the meta data (has a least these two components: meta$pos and meta$brush.size)

Value

NULL

Examples

Run this code
## see the source code of, e.g., qbar() for its usage

Run the code above in your browser using DataCamp Workspace