You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
This works fine:
new Color('f60'); // Result: [255, 102, 0]
but when you pass the type explicitly, hexToRgb is called twice:
--- 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).new Color('f60', 'hex'); // Result: [597, 258, 0]
The text was updated successfully, but these errors were encountered: