Applies roughness to all four control points, then flattens and reduces the
curve. Returns n_passes roughened polyline paths.
rough_bezier(
P0,
P1,
P2,
P3,
roughness = 1,
bowing = 1,
n_passes = 2L,
seed = NULL,
tol = NULL,
rdp_eps = NULL
)List of n_passes 2-column (x, y) matrices.
Control points as length-2 numeric vectors c(x, y) in inch space.
Non-negative roughness radius (inches). Default 1.
Bowing multiplier (currently not applied to Bezier control points separately; roughness serves the role). Default 1.
Number of stroke passes. Default 2.
Integer seed for reproducibility.
Flatness tolerance. Default max(roughness * 0.01, 1e-4).
RDP epsilon. Default max(roughness * 0.005, 1e-5).
Other sketch-core:
arrowhead(),
curve_fill(),
engrave_fill(),
engrave_ladder(),
hachure_fill(),
hachure_fill_multi(),
leader_path(),
repel_layout(),
rough_arc(),
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()