polify
polify copied to clipboard
A low-poly image generation library, with WASM support.
Polify
Low-poly image generator library. Written in Rust, with some WebAssembly support. WIP demo here.
The polify_image algorithm is heavily based on this paper by Crystal J. Qian.
Example output
Note results may be subject to change, I'm still trying to improve it, particularily the edges of triangles.
An image of a husky from Erik Mclean:


An image of some mountains by Siyuan:


Another picture of mountains, by Anton Lecock:


Usage
To generate the WASM package for use in something like NPM, use wasm-pack, like so:
wasm-pack build --target bundler
and copy the directory where needed.
Thanks
-
To all the photographers whose art I used for demos.
-
Another mention of the paper by Crystal J. Qian for the algorithm used for image generation.