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

Creating a new Color with explicit type='hex' will cast color twice #1172

Open
SjonHortensius opened this issue Dec 22, 2012 · 0 comments · May be fixed by #1173
Open

Creating a new Color with explicit type='hex' will cast color twice #1172

SjonHortensius opened this issue Dec 22, 2012 · 0 comments · May be fixed by #1173

Comments

@SjonHortensius
Copy link

SjonHortensius commented Dec 22, 2012

This works fine:
new Color('f60'); // Result: [255, 102, 0]

but when you pass the type explicitly, hexToRgb is called twice:
new Color('f60', 'hex'); // Result: [597, 258, 0]

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/359735-creating-a-new-color-with-explicit-type-hex-will-cast-color-twice?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github).
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

Successfully merging a pull request may close this issue.

1 participant