summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-26 23:50:17 -0400
committerLex Neva <github.com@lexneva.name>2018-08-26 23:50:17 -0400
commit7319937ea6c568aba8d613eed66433ddb24b6cc3 (patch)
tree78b1a0af66a97829314ddfdc162ed5fd571285b4 /lib
parent7637848ad8d6ec8ae0eca1fe1a0979572e93415a (diff)
make line thickness value less magical
Diffstat (limited to 'lib')
-rw-r--r--lib/simulator.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/simulator.py b/lib/simulator.py
index 610e4ee4..598d201b 100644
--- a/lib/simulator.py
+++ b/lib/simulator.py
@@ -4,7 +4,7 @@ from wx.lib.intctrl import IntCtrl
import time
from itertools import izip
-from .svg import color_block_to_point_lists
+from .svg import color_block_to_point_lists, PIXELS_PER_MM
from .i18n import _
class ControlPanel(wx.Panel):
@@ -369,7 +369,10 @@ class DrawingPanel(wx.Panel):
self.control_panel.on_start()
def color_to_pen(self, color):
- return wx.Pen(color.visible_on_white.rgb, width=int(0.4 * self.PIXEL_DENSITY))
+ # We draw the thread with a thickness of 0.1mm. Real thread has a
+ # thickness of ~0.4mm, but if we did that, we wouldn't be able to
+ # see the individual stitches.
+ return wx.Pen(color.visible_on_white.rgb, width=int(0.1 * PIXELS_PER_MM * self.PIXEL_DENSITY))
def parse_stitch_plan(self, stitch_plan):
self.pens = []