invert-color
invert-color copied to clipboard
Support to parse color from rgb[a] string format
As in CSS or react-native stylesheet, we often use rgb/rgba format. This pull request is to support RGB string with alpha channel supported, eg:
- rgb(100,100,100)
- rgba(255, 255, 0, 0.2)
Also a feature request here: https://github.com/onury/invert-color/issues/21
Coverage decreased (-5.0%) to 93.578% when pulling 8513d579ba4a8faf81b38ef4462d71e5bfb01c82 on luatnd:master into cd183934b67e4536e4e3f8a618067fb861fd63e2 on onury:master.
I have added some test cases but this pull did not pass the coverage check!