invert-color icon indicating copy to clipboard operation
invert-color copied to clipboard

Generates inverted (opposite) version of the given color. (<1KB)

Results 3 invert-color issues
Sort by recently updated
recently updated
newest added

``` import invert from 'invert-color'; let _channels = [0, 0, 0]; let _new = invert.asRGB(_channels); //error ``` expected: This should work, as per: https://github.com/onury/invert-color/blob/cd183934b67e4536e4e3f8a618067fb861fd63e2/lib/invert.d.ts ``` /** * RGB list (array)...

I got the error: > Invalid HEX color: "rgba(0,0,0,0.2)" After read the source code, I see this program has not supported to parse the color string from rgb

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,...