summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-01-06 15:11:42 -0500
committerLex Neva <github.com@lexneva.name>2018-01-06 15:11:57 -0500
commit218ec1b63d8c6b4e20df2be5a587e22b8bb3c817 (patch)
tree8f8b8ce3c3bac460122266bfa7bd913df6b690e6
parent8d8e886d8b63e65d7ad99757ec6ebab4b5303f09 (diff)
don't intify floating point coordinates
-rw-r--r--embroider_simulate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/embroider_simulate.py b/embroider_simulate.py
index 33c0159e..6ec35bd1 100644
--- a/embroider_simulate.py
+++ b/embroider_simulate.py
@@ -16,7 +16,7 @@ class EmbroiderySimulator(wx.Frame):
self.frame_period = kwargs.pop('frame_period', 80)
self.stitches_per_frame = kwargs.pop('stitches_per_frame', 1)
self.target_duration = kwargs.pop('target_duration', None)
- self.scale = 1
+ self.scale = 3
wx.Frame.__init__(self, *args, **kwargs)
@@ -174,7 +174,7 @@ class EmbroiderySimulator(wx.Frame):
# JUMP just means a long stitch, really.
x, y = fields[2:]
- new_pos = (int(float(x) * PIXELS_PER_MM), int(float(y) * PIXELS_PER_MM))
+ new_pos = (float(x) * PIXELS_PER_MM, float(y) * PIXELS_PER_MM)
if not cut:
segments.append(((pos, new_pos), pen))