Expand description
Turning a loaded outline into path commands.
Structsยง
- Contour
Point ๐ - A point and its flag, which is all path conversion reads.
Enumsยง
- Path
Contour Start - Where a contour starts when its first point is off-curve.
- Pending
State ๐ - Off-curve points seen but not yet emitted, since a curve cannot be drawn until the point that ends it arrives.
Functionsยง
- contour_
to_ path - Converts one contour into path commands, taking its points from a slice of
anything
to_pointcan read them out of. - outline_
to_ path - Converts an outline given as points, flags and contour end points into
path commands, and calls
sinkfor each. - walk_
contour ๐ - Emits one contour, reading its points by index.