1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Path types and tessellation.
//!
//! Every path this crate is given is tessellated. A convex path takes a fan
//! fill, which avoids both the sweep and the stencil pass, and everything else
//! goes through the general fill — so [`path::Path::convexity`] is what
//! chooses between them.
//!
//! Detection is conservative in one direction only: a wrong `Concave` answer
//! costs speed, and a wrong `Convex` answer renders incorrectly, because a fan
//! applies no fill rule and cannot express what filling a self-crossing path
//! means. That asymmetry is why the classifier measures how far a polygon
//! turns in total rather than only whether its turns agree.
//!
//! Not every shape comes here. An antialiased rounded rect, circle or ellipse,
//! and a blurred rounded rect, are drawn as one quad whose coverage the
//! fragment shader computes; `emblema-core`'s canvas makes that choice, and
//! those shapes never become a [`Path`] here. A filled plain rect is still
//! tessellated, deliberately: evaluating it measured about thirty per cent
//! slower on every board this targets (`docs/on-a-board.md`); a stroked one is
//! evaluated.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;