From 218ec1b63d8c6b4e20df2be5a587e22b8bb3c817 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 6 Jan 2018 15:11:42 -0500 Subject: don't intify floating point coordinates --- embroider_simulate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embroider_simulate.py') 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)) -- cgit v1.2.3