Function flo_curves::bezier::distort_path
source · pub fn distort_path<PathIn, DistortFn, PathOut>(
path: &PathIn,
distort_fn: DistortFn,
step_len: f64,
max_error: f64
) -> Option<PathOut>where
PathIn: BezierPath,
PathOut: BezierPathFactory<Point = PathIn::Point>,
DistortFn: Fn(PathIn::Point, &Curve<PathIn::Point>, f64) -> PathOut::Point,
Expand description
Distorts a path using an arbitrary function