Geometrize
Transform images into geometric art.
This crate provides two rendering styles:
- Low-poly: Decomposes an image into colored triangles via Delaunay triangulation.
- Pointillist: Renders the same triangulation as overlapping circles.
Installation
cargo add geometrize
Quick Start
Images are transformed using the geometrize function.
use ;
use ;
let image = open.unwrap;
let lowpoly: RgbaImage = geometrize.unwrap;
lowpoly.save.unwrap;
let pointillist: RgbaImage = geometrize.unwrap;
pointillist.save.unwrap;
View images at Docs.rs
Transparent images
This also works with transparent images.
let image = open.unwrap;
let lowpoly: RgbaImage = geometrize.unwrap;
lowpoly.save.unwrap;
let pointillist: RgbaImage = geometrize.unwrap;
pointillist.save.unwrap;
View images at Docs.rs