Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gizeh.tools.htmlcolor_to_rgb - wrong indexing #20

Open
cdar opened this issue Jul 21, 2015 · 0 comments
Open

gizeh.tools.htmlcolor_to_rgb - wrong indexing #20

cdar opened this issue Jul 21, 2015 · 0 comments

Comments

@cdar
Copy link

cdar commented Jul 21, 2015

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])]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant