diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-07-15 20:15:35 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-07-25 21:17:58 -0400 |
| commit | dbcbf7cff1c8e76a2715d939818124c33cb5fa1e (patch) | |
| tree | c26e9abc262fa82d7479ad17112975b410049ab4 /lib/threads/color.py | |
| parent | 04ab1c4ae9a7cc9d282a04977ce840bf93e2120c (diff) | |
switch to pyembroidery for file generation
Diffstat (limited to 'lib/threads/color.py')
| -rw-r--r-- | lib/threads/color.py | 9 |
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 |
