make line thickness value less magical

pull/284/head
Lex Neva 2018-08-26 23:50:17 -04:00
rodzic 7637848ad8
commit 7319937ea6
2 zmienionych plików z 25 dodań i 22 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ from wx.lib.intctrl import IntCtrl
import time import time
from itertools import izip 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 _ from .i18n import _
class ControlPanel(wx.Panel): class ControlPanel(wx.Panel):
@ -369,7 +369,10 @@ class DrawingPanel(wx.Panel):
self.control_panel.on_start() self.control_panel.on_start()
def color_to_pen(self, color): 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): def parse_stitch_plan(self, stitch_plan):
self.pens = [] self.pens = []

Wyświetl plik

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-26 23:34-0400\n" "POT-Creation-Date: 2018-08-26 23:50-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -674,79 +674,79 @@ msgstr ""
msgid "Generate INX files" msgid "Generate INX files"
msgstr "" msgstr ""
#: lib/simulator.py:608 #: lib/simulator.py:611
msgid "<<" msgid "<<"
msgstr "" msgstr ""
#: lib/simulator.py:608 #: lib/simulator.py:611
msgid "Play reverse (arrow left)" msgid "Play reverse (arrow left)"
msgstr "" msgstr ""
#: lib/simulator.py:609 #: lib/simulator.py:612
msgid "-" msgid "-"
msgstr "" msgstr ""
#: lib/simulator.py:609 #: lib/simulator.py:612
msgid "Play one frame backward (+)" msgid "Play one frame backward (+)"
msgstr "" msgstr ""
#: lib/simulator.py:610 #: lib/simulator.py:613
msgid "+" msgid "+"
msgstr "" msgstr ""
#: lib/simulator.py:610 #: lib/simulator.py:613
msgid "Play one frame forward (+)" msgid "Play one frame forward (+)"
msgstr "" msgstr ""
#: lib/simulator.py:611 #: lib/simulator.py:614
msgid ">>" msgid ">>"
msgstr "" msgstr ""
#: lib/simulator.py:611 #: lib/simulator.py:614
msgid "Play forward (arrow right)" msgid "Play forward (arrow right)"
msgstr "" msgstr ""
#: lib/simulator.py:612 #: lib/simulator.py:615
msgid "^" msgid "^"
msgstr "" msgstr ""
#: lib/simulator.py:612 #: lib/simulator.py:615
msgid "Speed up (arrow up)" msgid "Speed up (arrow up)"
msgstr "" msgstr ""
#: lib/simulator.py:613 #: lib/simulator.py:616
msgid "v" msgid "v"
msgstr "" msgstr ""
#: lib/simulator.py:613 #: lib/simulator.py:616
msgid "Slow down (arrow down)" msgid "Slow down (arrow down)"
msgstr "" msgstr ""
#: lib/simulator.py:614 #: lib/simulator.py:617
msgid "Pause" msgid "Pause"
msgstr "" msgstr ""
#: lib/simulator.py:614 #: lib/simulator.py:617
msgid "Pause (P)" msgid "Pause (P)"
msgstr "" msgstr ""
#: lib/simulator.py:615 #: lib/simulator.py:618
msgid "Restart" msgid "Restart"
msgstr "" msgstr ""
#: lib/simulator.py:615 #: lib/simulator.py:618
msgid "Restart (R)" msgid "Restart (R)"
msgstr "" msgstr ""
#: lib/simulator.py:616 #: lib/simulator.py:619
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
#: lib/simulator.py:616 #: lib/simulator.py:619
msgid "Close (Q)" msgid "Close (Q)"
msgstr "" msgstr ""
#: lib/simulator.py:794 #: lib/simulator.py:797
msgid "Stitch # " msgid "Stitch # "
msgstr "" msgstr ""