summaryrefslogtreecommitdiff
path: root/embroider_params.py
diff options
context:
space:
mode:
authorLex Neva <github@lexneva.name>2016-02-18 21:40:37 -0500
committerLex Neva <github@lexneva.name>2016-02-18 21:43:16 -0500
commitd1cd63eecd9665c789bd4263de07562408ec896f (patch)
tree49261ac42a2634d2a48e6e8b4a911979a9b966d9 /embroider_params.py
parentcf81db3670dd985583b2d158dd1214f8f2e717e0 (diff)
get rid of randomness in fills
Previously, each row in a fill region was offset by a random amount. This looks better than not offsetting at all (which will create visible columns of stitches), but humans are very good at finding patterns in randomness. The result is that fill regions look weird. This commit instead carefully orders the stitches in fill regions such that each row's stitches are offset by half of max_stitch_length from the previous. There are also a couple of other miscellaneous fixes and features in here -- sorry about that.
Diffstat (limited to 'embroider_params.py')
-rw-r--r--embroider_params.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/embroider_params.py b/embroider_params.py
index d9fc21c1..8b9e376a 100644
--- a/embroider_params.py
+++ b/embroider_params.py
@@ -16,13 +16,14 @@ class EmbroiderParams(inkex.Effect):
inkex.Effect.__init__(self)
self.params = ["zigzag_spacing",
- "running_stitch_length",
+ "stitch_length",
"row_spacing",
"max_stitch_length",
"repeats",
"angle",
"hatching",
- "satin_column"
+ "satin_column",
+ "stroke_first",
]
for param in self.params: