Skip to contents

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"))

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).

Value

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