linebender/velato

Alpha should apply to layer as a whole, not every element in layer

Open

#37 geöffnet am 10. Aug. 2024

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (25 Forks)github user discovery
buggood first issue

Repository-Metriken

Stars
 (148 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

When modifying the with_winit example to render with a non-unity alpha, such as

renderer.render(lottie, frame, Affine::IDENTITY, 0.5)

the result looks like image with each component of the tiger having alpha applied to it individually. Instead, the alpha should apply to the rendered image as a whole.

I suspect, but haven't confirmed, that the same issue exists for layers specified by the lottie file.

Contributor Guide