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

Fix: Not collapsable gradients with canvas renderer #3152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Quatern1on
Copy link

@Quatern1on Quatern1on commented Feb 4, 2025

When gradient color stops offsets do not align with alpha stops offsets, Canvas renderer just renders without using alpha at all. This PR uses algorithm that merges colors and alpha stops into single array of colors with alpha that correctly represents such gradient and can be used with CanvasGradient.
Example animation that is rendered differently with canvas renderer: break.json

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

Successfully merging this pull request may close these issues.

1 participant