Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaceColor does not accept RGB array of 4 #22

Open
greghesp opened this issue Jul 22, 2021 · 1 comment
Open

replaceColor does not accept RGB array of 4 #22

greghesp opened this issue Jul 22, 2021 · 1 comment

Comments

@greghesp
Copy link

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

@vladotesanovic
Copy link

vladotesanovic commented Feb 28, 2023

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:
#51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants