Urgh I had fill/stroke inverted, no wonder I was getting ugly colors!
This commit is contained in:
parent
3a10f80aa1
commit
86c2de3e68
@ -19,9 +19,9 @@ class IconColor:
|
|||||||
def __init__(self, color_string=None):
|
def __init__(self, color_string=None):
|
||||||
if color_string == None or not is_valid(color_string):
|
if color_string == None or not is_valid(color_string):
|
||||||
n = int(random.random() * (len(Colors.colors) - 1))
|
n = int(random.random() * (len(Colors.colors) - 1))
|
||||||
[self._fill, self._stroke] = Colors.colors[n]
|
[self._stroke, self._fill] = Colors.colors[n]
|
||||||
else:
|
else:
|
||||||
[self._fill, self._stroke] = _parse_string(color_string)
|
[self._stroke, self._fill] = _parse_string(color_string)
|
||||||
|
|
||||||
def get_stroke_color(self):
|
def get_stroke_color(self):
|
||||||
return self._stroke
|
return self._stroke
|
||||||
|
Loading…
Reference in New Issue
Block a user