Learn R Programming

ggsketch (version 2.0.0)

hachure_fill_multi: Fill a multi-ring region with hachure lines (hole-aware)

Description

Like hachure_fill() but takes a list of rings sharing one Active Edge Table, so the even-odd scan-line parity excludes holes and skips the gaps between disjoint pieces automatically. This is what powers the filled contour / 2-D density band geoms, whose regions have holes.

Usage

hachure_fill_multi(
  rings,
  hachure_gap = 0.1,
  hachure_angle = 45,
  roughness = 0,
  bowing = 0,
  seed = NULL
)

Value

A list of 2-column (x, y) fill-line matrices (same structure as hachure_fill()).

Arguments

rings

A list of rings, each a list with numeric x and y vertex vectors (inch space). The first ring is typically the outer boundary and the rest holes, but any even-odd arrangement of outer pieces and holes is handled.

hachure_gap

Spacing between fill lines (inches). Default 0.1.

hachure_angle

Fill angle (degrees). Default 45.

roughness

Roughness applied to each fill line. Default 0 (straight).

bowing

Bowing applied to each fill line. Default 0.

seed

Integer seed.

See Also

Other sketch-core: arrowhead(), curve_fill(), engrave_fill(), engrave_ladder(), hachure_fill(), leader_path(), repel_layout(), rough_arc(), 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()