Zulko / gizeh

Simple Vector Graphics for Python
Other
702 stars 70 forks source link

gizeh.tools.htmlcolor_to_rgb - wrong indexing #20

Open cdar opened 9 years ago

cdar commented 9 years ago

Current: return [1.0*int(n,16)/255 for n in (string[:2], string[2:4], string[4:])]

Correct: return [1.0*int(n,16)/255 for n in (string[1:3], string[3:5], string[5:7])]