fix make color string
This commit is contained in:
parent
94168c01ae
commit
4bf62193f3
1 changed files with 2 additions and 1 deletions
|
@ -641,7 +641,8 @@ def make_color_string(color):
|
||||||
"""
|
"""
|
||||||
col = '#'
|
col = '#'
|
||||||
for i in ('red', 'green', 'blue'):
|
for i in ('red', 'green', 'blue'):
|
||||||
h = hex(getattr(color, i) / (16*16)).split('x')[1]
|
h = hex(int(getattr(color, i) / (16*16)))
|
||||||
|
h = h.split('x')[1]
|
||||||
if len(h) == 1:
|
if len(h) == 1:
|
||||||
h = '0' + h
|
h = '0' + h
|
||||||
col += h
|
col += h
|
||||||
|
|
Loading…
Add table
Reference in a new issue