- I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax that eg. SVG lacks.
What happens when the string is invalid? Does it throw an error?
- I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax that eg. SVG lacks.
What happens when the string is invalid? Does it throw an error?