Skip to contents

Generates points around the ellipse, roughens them, and connects them with a smooth path (sampled cubic Bézier 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)

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.

Value

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