Closed hzzcc closed 4 years ago
parse color like 'rgba(255, 0, 0, 0)'
If you want to construct that sort of color, you have to use the constructor directly rather than parsing a CSS string. Achromatic CSS colors have NaN values for RGB.
parse color like 'rgba(255, 0, 0, 0)'