A photo filter.
| examples | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| cabal.project | ||
| flake.lock | ||
| flake.nix | ||
| fourmolu.yaml | ||
| generate-outputs.sh | ||
| image-triangles.cabal | ||
| LICENSE | ||
| README.md | ||
image-triangles
Makes a voronoi 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.02 --input examples/inputs/birds-eye-view.png --output output.jpeg
with cabal
Install cabal & ghc if you don't have them.
cabal update
cabal run image-triangles -- --minDistance 0.02 --input examples/inputs/birds-eye-view.png --output output.jpeg





