Skip to contents

sketch is a list of drawable objects that can be rendered together with a single call to draw(). Sketches can be built up incrementally using the + operator, e.g. sketch() + circle() + circle(x = 2).

Usage

sketch(shapes = list())

Arguments

shapes

A list of drawable-classed objects. Default list().

Examples

if (FALSE) { # \dontrun{
s <- sketch() + circle(radius = 1) + circle(x = 2, radius = 0.5)
draw(s)
} # }