Expand description
2D paths with Bezier flattening, fill (via scanline), and stroke.
2D path representation with Bézier flattening, fill, and stroke.
Path stores a sequence of PathCmd commands; PathBuilder offers
a fluent API for constructing paths. Flattening uses De Casteljau adaptive
subdivision. Fill delegates to crate::scanline; stroke constructs a
parallel-offset polygon and fills it.
Structs§
- Path
- A 2-D path storing a sequence of draw commands.
- Path
Builder - Fluent builder for
Path. - Stroke
Style - Stroke configuration.
Enums§
Functions§
- flatten_
cubic - Adaptive De Casteljau flattening for a cubic Bézier.
- flatten_
cubic_ bezier - Flatten a cubic Bézier into a sequence of points (including endpoints).
- flatten_
quad - Adaptive De Casteljau flattening for a quadratic Bézier.
- flatten_
quad_ bezier - Flatten a quadratic Bézier into a sequence of points (including endpoints).
Type Aliases§
- Point
- A single 2-D point.