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

Specify behaviour for RGBA (4D) color properties #28

Open
mbasaglia opened this issue Apr 23, 2024 · 2 comments
Open

Specify behaviour for RGBA (4D) color properties #28

mbasaglia opened this issue Apr 23, 2024 · 2 comments

Comments

@mbasaglia
Copy link
Member

Currently lottie-web ignores the 4th component

@fmalita
Copy link
Member

fmalita commented Apr 29, 2024

Since the data is already there, it seems reasonable to make use of it. Non-opaque colors are useful in general, and can also be more efficient to render than the group opacity alternative.

I wasn't sure how this would work for LottieWeb's SVG backend, but it looks like SVG 2 introduced the alpha-channel CSS form rgba() for fill and stroke, and that is now supported in all browsers. So it should be easy to update.

@mbasaglia
Copy link
Member Author

SVG should also support #rrggbbaa

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