inkstitch/lib/utils
George Steel d32a8fd466
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
2024-05-05 13:55:33 -04:00
..
__init__.py
cache.py Add option to disable the stitch plan cache (#2655) 2024-04-27 14:16:18 -04:00
clamp_path.py
dotdict.py
geometry.py
inkscape.py
io.py
json.py
list.py
param.py
paths.py
prng.py
settings.py Add option to disable the stitch plan cache (#2655) 2024-04-27 14:16:18 -04:00
smoothing.py Add randomized running and fill stitches (#2830) 2024-05-05 13:55:33 -04:00
string.py
svg_data.py simulator fixes (#2844) 2024-04-30 20:21:32 +02:00
threading.py
version.py