lottie-colorify icon indicating copy to clipboard operation
lottie-colorify copied to clipboard

replaceColor does not accept RGB array of 4

Open greghesp opened this issue 4 years ago • 1 comments

If I run getColors on my json, I can see it returns arrays of 4, assuming the 4th is the alpha layer.
replaceColor however, only accepts an array of 3

greghesp avatar Jul 22 '21 12:07 greghesp

I had same issue as this library didn't work out of the box for my lottie files, I had to change source code a bit to support it.

Here is the PR for supporting alpha channel: https://github.com/xxmuaddib/lottie-colorify/pull/51

vladotesanovic avatar Feb 28 '23 17:02 vladotesanovic