Skip to main content

flatten_stroke

Function flatten_stroke 

Source
pub fn flatten_stroke(ops: &[PathOp], out: &mut Vec<Vec2>)
Expand description

Flattens ops into the polylines a stroke draws, each followed by CONTOUR_BREAK: a subpath its Z closed ends back on its start, an open one ends where it was left, so a stroke’s hit pieces are the pieces it paints and no chord across an open curve is among them.