A photo filter.
Find a file
2024-02-05 03:54:36 -08:00
examples square photo bug fix 2024-02-05 03:54:36 -08:00
src square photo bug fix 2024-02-05 03:54:36 -08:00
.envrc swapping to voroni diagram 2024-01-19 02:31:19 -08:00
.gitignore add nix artifacts to .gitignore 2024-02-04 03:37:24 -08:00
cabal.project swapping to voroni diagram 2024-01-19 02:31:19 -08:00
flake.lock swapping to voroni diagram 2024-01-19 02:31:19 -08:00
flake.nix add & apply fourmolu and dead code removal 2024-02-04 04:08:31 -08:00
image-triangles.cabal remove src/dist-newstyle (added by mistake) 2024-02-05 03:00:01 -08:00
LICENSE parallelism 2018-12-18 01:32:49 -05:00
README.md square photo bug fix 2024-02-05 03:54:36 -08:00

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

Hawaii original Hawaii post-filter Dog original Dog post-filter

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