summaryrefslogtreecommitdiff
path: root/lib/threads
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-07-15 20:15:35 -0400
committerLex Neva <github.com@lexneva.name>2018-07-25 21:17:58 -0400
commitdbcbf7cff1c8e76a2715d939818124c33cb5fa1e (patch)
treec26e9abc262fa82d7479ad17112975b410049ab4 /lib/threads
parent04ab1c4ae9a7cc9d282a04977ce840bf93e2120c (diff)
switch to pyembroidery for file generation
Diffstat (limited to 'lib/threads')
-rw-r--r--lib/threads/color.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/threads/color.py b/lib/threads/color.py
index fede2ecc..d94f8825 100644
--- a/lib/threads/color.py
+++ b/lib/threads/color.py
@@ -39,6 +39,15 @@ class ThreadColor(object):
return "#%s" % self.hex_digits
@property
+ def pyembroidery_thread(self):
+ return {
+ "name": self.name,
+ "id": self.number,
+ "manufacturer": self.manufacturer,
+ "rgb": int(self.hex_digits, 16),
+ }
+
+ @property
def hex_digits(self):
return "%02X%02X%02X" % self.rgb