Skip to main content

resample_path

Function resample_path 

Source
pub fn resample_path(
    path: &EvaluatedPath,
    size: CanvasSize,
    counts: &[usize],
) -> EvaluatedPath
Expand description

path with counts[i] vertices on subpath i, spaced evenly along its pixel length, with tangents along the curve a third of the spacing long: paths of different vertex counts made ready to morph. A subpath with no count, or a count under 2 (3 when closed), is left as it is.