Polymorpher
A library for creating and morphing potentially rounded polygons. Based on the Kotlin implementation of Shape Morph from M3 Expressive.
Features
kurbo: implementsPathBuilderforkurbo::BezPath.skia: implementsPathBuilderforskia_safe::PathBuilderandskia_safe::Path.tiny-skia: implementsPathBuilderfortiny_skia::PathBuilder.lyon: implementsPathBuilderfor everything that implementslyon'sPathBuilder.
Example with lyon
use Path;
use crate::;
let path = from_points
.normalized
.transformed
.;
// Render it however you want!
MSRV
The Minimum Supported Rust Version is currently 1.85.1.
License
Licensed under the Apache License, Version 2.0 to be compatible with the AOSP. This project may not be copied, modified, or distributed except according to those terms.