Skip to main content

interpolate_path

Function interpolate_path 

Source
pub fn interpolate_path(from: &str, to: &str, progress: f64) -> String
Expand description

Linearly interpolates between two SVG path strings.

Both paths should have the same command structure (same number of numeric arguments). If the numeric argument count differs the function falls back to returning from when progress < 0.5 and to otherwise.