Learn R Programming

ggsketch (version 2.0.0)

sketch_fill_multi: Dispatch fill-style for a multi-ring (hole-aware) region

Description

The band counterpart of sketch_fill(): fills a region described by several rings (outer pieces and holes) with one shared scan-line so holes are excluded. Supports the line-based styles "hachure" and "cross_hatch"; "solid" returns NULL (painted by an even-odd polygon fill in the grob). Any other style degrades to "hachure", since the scribble/dots/dashed styles are defined per single ring.

Usage

sketch_fill_multi(
  rings,
  fill_style = "hachure",
  hachure_gap = 0.1,
  hachure_angle = 45,
  fill_weight = 1,
  roughness = 0.5,
  bowing = 0,
  seed = NULL
)

Value

List of fill-line segments, or NULL for "solid".

Arguments

rings

A list of rings (see hachure_fill_multi()).

fill_style

Character: one of "hachure", "cross_hatch", "zigzag", "zigzag_line", "dots", "dashed", "solid".

hachure_gap

Gap between fill lines (inches). Default 0.1.

hachure_angle

Base fill angle (degrees). Default 45.

fill_weight

Thickness weight (passed to caller for gpar). Default 1.

roughness, bowing

Sketch params for fill lines. Defaults 0.5, 0.

seed

Integer seed.

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