3 ms·
A post about vector graphics and the word "stroke" appears zero times ... > Much better approach for vector graphics is analytic anti-aliasing. And it turns ou
by Lichtso 4y ago
A post about vector graphics and the word "stroke" appears zero times ...
> Much better approach for vector graphics is analytic anti-aliasing. And it turns out, it is not just almost as fast as a rasterizer with no anti-aliasing, but also has much better quality than what can be practically achieved with supersampling.
> Go over all segments in shape and compute area and cover values continuously adding them to alpha value.
This is approach is called "coverage to alpha". The author will be surprised to learn about the problem of coverage to alpha conflation artifacts. E.g. if you draw two shapes of exactly the same geometry over each other, but with different colors. The correct result includes only the color of the last shape, but with "coverage to alpha" you will get a bit of color bleeding around the edges (the conflation artifacts). I think Guzba also gives other examples in this thread.
Also, they did not mention the other hard problems like stroke offsetting, nested clipping and group opacity etc.
Here, IMO a good blog post about the hard problems of getting alpha blending and coverage right: https://ciechanow.ski/alpha-compositing/ https://ciechanow.ski/alpha-compositing/