A photo filter.
Find a file
2024-04-19 15:16:50 -07:00
examples minimum distance sampling 2024-02-12 12:11:01 -08:00
src run nix fmt 2024-04-19 15:16:50 -07: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 strictly formatting changes 2024-04-18 02:54:07 -07:00
flake.lock strictly formatting changes 2024-04-18 02:54:07 -07:00
flake.nix run nix fmt 2024-04-19 15:16:50 -07:00
fourmolu.yaml strictly formatting changes 2024-04-18 02:54:07 -07:00
image-triangles.cabal format .cabal & comment out profiling 2024-04-19 15:16:32 -07:00
LICENSE parallelism 2018-12-18 01:32:49 -05:00
README.md fixed readme's nix run instructions 2024-02-23 00:05:44 -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