summaryrefslogtreecommitdiff
path: root/lib/threads/color.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-03-11 11:15:51 +0100
committerGitHub <noreply@github.com>2025-03-11 11:15:51 +0100
commit5cfaa83be390cfec6fd5b3d0353458025164d3c7 (patch)
treefc1fa40eabde4b7f2d322f51937aed31fb0d467a /lib/threads/color.py
parent0a0d10afcf5d9f4899728ffecd838d97d6545d54 (diff)
shift command position of commands with connector lines a little bit out (#3572)
Diffstat (limited to 'lib/threads/color.py')
-rw-r--r--lib/threads/color.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/threads/color.py b/lib/threads/color.py
index e71ebb06..ef655045 100644
--- a/lib/threads/color.py
+++ b/lib/threads/color.py
@@ -4,7 +4,6 @@
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
import colorsys
-import re
from inkex import Color
from pyembroidery.EmbThread import EmbThread
@@ -34,7 +33,7 @@ class ThreadColor(object):
self.rgb = (color.get_red(), color.get_green(), color.get_blue())
return
elif isinstance(color, str):
- self.rgb = Color(color).to('rgb').get_values(False)
+ self.rgb = tuple(Color(color).to('rgb').get_values(False))
elif isinstance(color, (list, tuple)):
self.rgb = tuple(color)
else: