Open
Description
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]
Metadata
Metadata
Assignees
Labels
No labels
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]