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.
examples
to run:
with nix
nix run --experimental-features "nix-command flakes" ".#" -- --minDistance 0.05 --input examples/birds-eye-view.png --output output.svg
with cabal
Install cabal & ghc if you don't have them.
cabal update
cabal run image-triangles -- --minDistance 0.05 --input examples/birds-eye-view.png --output output.svg


