Learn R Programming

ggsketch (version 2.0.0)

rough_arc: Roughen an elliptical arc into one or more sketch stroke paths

Description

The open-arc sibling of rough_ellipse(). Samples the arc by arc length, displaces each point slightly, and returns n_passes overlaid strokes for the double-stroke hand-drawn look. Unlike a full ellipse the path is left open (the ends are not joined).

Usage

rough_arc(
  cx,
  cy,
  rx,
  ry,
  start,
  end,
  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.

start, end

Start/end angle in radians (counter-clockwise from the positive x-axis; end may be less than start).

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_bezier(), rough_ellipse(), roughen_polyline(), sketch_arrowheads(), sketch_fill(), sketch_fill_multi(), spray_scatter(), stroke_profile(), stroke_ribbon(), treemap_layout(), wash_bleed(), watercolor_wash(), watercolor_wash_multi()