A photo filter.
Find a file
2024-02-12 14:08:08 -08:00
examples minimum distance sampling 2024-02-12 12:11:01 -08:00
src formatting 2024-02-12 14:08:08 -08:00
.envrc swapping to voroni diagram 2024-01-19 02:31:19 -08:00
.gitignore ignore pictures & svgs at top level 2024-02-12 12:11:09 -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
fourmolu.yaml fourmolu.yaml 2024-02-09 02:11:50 -08:00
image-triangles.cabal added random points with minimum distance between them 2024-02-09 02:12:17 -08:00
LICENSE parallelism 2018-12-18 01:32:49 -05:00
README.md capitalize luna's file name in readme 2024-02-12 12:13:59 -08:00

image-triangles

Makes a voroni diagram and fills each cell with the average color the image below in.

examples

Sierra mountains original Sierra mountains post-filter Hawaii original Hawaii post-filter Dog original Dog post-filter

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