From d32a8fd4661331da0affb15623a2ec9a9eac5c44 Mon Sep 17 00:00:00 2001 From: George Steel Date: Sun, 5 May 2024 13:55:33 -0400 Subject: Add randomized running and fill stitches (#2830) Add a mode to running stitch that uses randomized phase and stitch length instead of even spacing. This greatly reduces moire effects when stitching closely-spaced curves in running-stitch-based fills. Add option for randomized running stitch to: ripple stitch circular fill contour fill guided fill auto-fill When is randomization is not selected, ripple stitch will use even running stitch when staggers are set to 0 (default) and the stagger algorithm from guided fill (which does not look nice with a stagger period of 0) when staggers is nonzero. Also includes fix for satin contour underlays (missing tolerance default) mentioned in #2814. This sets the default tolerance to 0.2mm, which is the largest tolerance guaranteed to be backwards-compatible with existing designs using the default inset of 0.4mm. Original commits: * fix satin underlay tolerance default * Add randomized running stitch, make available in ripple stitch, circular, and contour * add randomized guided fill * make ripple stitch use even stitching when not staggering or randomizing. * add random auto-fill and switch jitter parameter to a percentage (matches satin) * fix comments --- lib/svg/tags.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/svg') diff --git a/lib/svg/tags.py b/lib/svg/tags.py index c05a9712..cc7fdda5 100644 --- a/lib/svg/tags.py +++ b/lib/svg/tags.py @@ -106,6 +106,8 @@ inkstitch_attribs = [ 'rows_per_thread', 'herringbone_width_mm', 'tartan_angle', + 'enable_random_stitches', + 'random_stitch_length_jitter_percent', # stroke 'stroke_method', 'bean_stitch_repeats', -- cgit v1.2.3