Learn R Programming

ggsketch (version 2.0.0)

stroke_profile: Width-profile presets for stroke_ribbon()

Description

Returns a vectorised pressure function f(t) over the normalised arc-length t in [0, 1], giving a width multiplier (>= 0) along the stroke. Pass the result as pressure to stroke_ribbon().

Usage

stroke_profile(kind = c("flat", "taper_in", "taper_out", "belly"))

Value

A function of t returning a numeric multiplier of the same length.

Arguments

kind

One of "flat" (constant), "taper_in" (thin start, thick end), "taper_out" (thick start, thin end), or "belly" (a spindle that swells in the middle and thins at both ends).

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