Debian Codegraph @

third_party/rust/aa-stroke/README.md

raw
1 Takes a path and produces a triangle mesh that corresponds to the antialiased stroked path.
2
3 The approach here is naive and only works for opaquely filled paths. Overlaping areas can
4 end up with seams or otherwise incorrect coverage values.
5
6 Transforms with uniform scale can be supported by scaling the input points and the stroke width
7 before passing them to the stroker. Other transforms are not currently (or ever?) supported.
8
9 ### TODO
10 - using triangle strips instead of triangle lists
11 - handle curves more efficiently than just flattening to lines
12 - handle cusps of curves more correctly