1
0
Fork 0
firefox/third_party/rust/aa-stroke
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
.github/workflows Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
examples Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
src Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
.cargo-checksum.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
Cargo.toml Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

Takes a path and produces a triangle mesh that corresponds to the antialiased stroked path.

The approach here is naive and only works for opaquely filled paths. Overlaping areas can end up with seams or otherwise incorrect coverage values.

Transforms with uniform scale can be supported by scaling the input points and the stroke width before passing them to the stroker. Other transforms are not currently (or ever?) supported.

TODO

  • using triangle strips instead of triangle lists
  • handle curves more efficiently than just flattening to lines
  • handle cusps of curves more correctly