A photo filter.
Find a file
Jack Wines e0d7d4d15b
new README and examples
with caveats about blanks & square pictures
2024-02-05 03:36:42 -08:00
examples new README and examples 2024-02-05 03:36:42 -08:00
src remove src/dist-newstyle (added by mistake) 2024-02-05 03:00:01 -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 new README and examples 2024-02-05 03:36:42 -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, only square images will work. Additionally, 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.png --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 --output output.svg