summaryrefslogtreecommitdiff
path: root/lib/svg
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2024-05-05 13:55:33 -0400
committerGitHub <noreply@github.com>2024-05-05 13:55:33 -0400
commitd32a8fd4661331da0affb15623a2ec9a9eac5c44 (patch)
tree6ac6a11c099a5b6b5463c9ff46bc7fb87d6ba888 /lib/svg
parentedbe382914bc45a3f953c6e0258ff1feb05d8c95 (diff)
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
Diffstat (limited to 'lib/svg')
-rw-r--r--lib/svg/tags.py2
1 files changed, 2 insertions, 0 deletions
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',