summaryrefslogtreecommitdiff
path: root/lib/stitches/linear_gradient_fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-11-07 17:10:03 +0100
committerGitHub <noreply@github.com>2025-11-07 17:10:03 +0100
commit5a9ae03dc14ea5b68a99581c21a5d8085f1a3243 (patch)
tree4b729fbdc8656f3ba75b7dfdd2ccfecdd8718fee /lib/stitches/linear_gradient_fill.py
parent383f164b6d90c0819d49f4fb16deb9efa3e11df2 (diff)
Running stitch length sequence (#4034)
* allow running stitch length sequences * contour fill: fix error message for long stitch length * satin: fix center underlay stitch length
Diffstat (limited to 'lib/stitches/linear_gradient_fill.py')
-rw-r--r--lib/stitches/linear_gradient_fill.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stitches/linear_gradient_fill.py b/lib/stitches/linear_gradient_fill.py
index 589a1f23..4f2f3f74 100644
--- a/lib/stitches/linear_gradient_fill.py
+++ b/lib/stitches/linear_gradient_fill.py
@@ -127,9 +127,11 @@ def _get_lines(fill, shape, bounding_box, angle):
if fill.enable_random_stitch_length:
points = [InkstitchPoint(*x) for x in line]
staggered_line = LineString(random_running_stitch(
- points, fill.max_stitch_length, fill.running_stitch_tolerance, fill.random_stitch_length_jitter, prng.join_args(fill.random_seed, i)))
+ points,
+ [fill.max_stitch_length], fill.running_stitch_tolerance, fill.random_stitch_length_jitter, prng.join_args(fill.random_seed, i))
+ )
else:
- staggered_line = apply_stitches(LineString(line), fill.max_stitch_length, fill.staggers, fill.row_spacing, i)
+ staggered_line = apply_stitches(LineString(line), [fill.max_stitch_length], fill.staggers, fill.row_spacing, i)
staggered_lines.append(staggered_line)
return staggered_lines, bottom_line