Learn R Programming

ggsketch (version 2.0.0)

sketch_fill: Dispatch fill-style to the appropriate Layer-1 fill function

Description

Dispatch fill-style to the appropriate Layer-1 fill function

Usage

sketch_fill(
  px,
  py,
  fill_style = "hachure",
  hachure_gap = 0.1,
  hachure_angle = 45,
  fill_weight = 1,
  roughness = 0.5,
  bowing = 0,
  seed = NULL
)

Value

List of 2-column (x,y) matrices representing fill stroke segments, OR NULL for "solid" (solid fill handled by polygon fill colour).

Arguments

px, py

Polygon vertices (inch space).

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_multi(), spray_scatter(), stroke_profile(), stroke_ribbon(), treemap_layout(), wash_bleed(), watercolor_wash(), watercolor_wash_multi()