Skip to main content

stroke

Function stroke 

Source
pub fn stroke(
    level: Level,
    path: impl IntoIterator<Item = PathEl>,
    style: &Stroke,
    affine: Affine,
    line_buf: &mut Vec<Line>,
    flatten_ctx: &mut FlattenCtx,
    stroke_ctx: &mut StrokeCtx,
    cull_bbox: RectU16,
)
Expand description

Flatten a stroked Bézier path into line segments.

See the note about open subpaths and culling on fill.