A photo filter.
| examples | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| cabal.project | ||
| flake.lock | ||
| flake.nix | ||
| fourmolu.yaml | ||
| image-triangles.cabal | ||
| LICENSE | ||
| README.md | ||
image-triangles
Makes a voroni diagram and fills each cell with the average color the image below in. Please note, there's currently a bug. Some cells will be blank.
examples
to run:
with nix
nix run --experimental-features 'nix-command flakes' -- --cornerCount 800 --input examples/birds-eye-view.webp --output output.svg
with cabal
Install cabal & ghc if you don't have them.
cabal update
cabal run image-triangles -- --cornerCount 800 --input examples/birds-eye-view.webp --output output.svg


