Comment by bschwindHN
6 days ago
> Just browsing the source I see Porter Duff blend modes. Really, in 2025? Have fun dealing with alpha compositing issues on this one.
What should we be using in 2025? I thought pre-multiplied alpha is essentially what you go for if you want a chance of alpha compositing ending up correct, but my knowledge is probably outdated.
You absolutely want premult alpha when dealing with multiple transparent layers in graphics.
Right - maybe I'm mistaken but doesn't Porter-Duff compositing encompass premultiplied alpha?
Yes, they introduced the concept in their paper. See this article for an in-depth guide to the topic: https://ciechanow.ski/alpha-compositing/
1 reply →