diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-01-04 22:42:19 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-01-04 22:42:19 -0500 |
| commit | 21c22bd79020fa1deaa165f93420f1e2563c3e43 (patch) | |
| tree | 05b7ab519a496abfc420fef56b46d66363ff374a /embroider_simulate.py | |
| parent | 1e2c67e13d835c512ab540445aa663d6046d0a54 (diff) | |
use PIXELS_PER_MM in simulate
Diffstat (limited to 'embroider_simulate.py')
| -rw-r--r-- | embroider_simulate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embroider_simulate.py b/embroider_simulate.py index b7f4e560..b602f569 100644 --- a/embroider_simulate.py +++ b/embroider_simulate.py @@ -6,7 +6,7 @@ import inkex import simplestyle import colorsys -from embroider import patches_to_stitches, stitches_to_polylines +from embroider import patches_to_stitches, stitches_to_polylines, PIXELS_PER_MM class EmbroiderySimulator(wx.Frame): def __init__(self, *args, **kwargs): @@ -173,7 +173,7 @@ class EmbroiderySimulator(wx.Frame): # JUMP just means a long stitch, really. x, y = fields[2:] - new_pos = (int(float(x) * 10), int(float(y) * 10)) + new_pos = (int(float(x) * PIXELS_PER_MM), int(float(y) * PIXELS_PER_MM)) if not cut: segments.append(((pos, new_pos), pen)) |
