Learn R Programming

ggsketch (version 2.0.0)

rough_ellipse: Roughen an ellipse into one or more sketch stroke paths

Description

Generates points around the ellipse, roughens them, and connects them with a smooth path (sampled cubic Bezier between consecutive point-pairs). Deliberately leaves a small gap at the close point ("ends don't meet" hand-drawn effect).

Usage

rough_ellipse(cx, cy, rx, ry, roughness = 1, n_passes = 2L, seed = NULL)

Value

List of n_passes 2-column (x, y) matrices of stroke points.

Arguments

cx, cy

Centre coordinates in inch space.

rx, ry

Semi-axis radii in inches (rx = horizontal, ry = vertical).

roughness

Non-negative roughness parameter. Default 1.

n_passes

Number of stroke overlays. Default 2.

seed

Integer seed for reproducibility.

See Also

Other sketch-core: arrowhead(), curve_fill(), engrave_fill(), engrave_ladder(), hachure_fill(), hachure_fill_multi(), leader_path(), repel_layout(), rough_arc(), rough_bezier(), roughen_polyline(), sketch_arrowheads(), sketch_fill(), sketch_fill_multi(), spray_scatter(), stroke_profile(), stroke_ribbon(), treemap_layout(), wash_bleed(), watercolor_wash(), watercolor_wash_multi()