A photo filter.
Find a file
2024-02-23 00:05:44 -08:00
examples minimum distance sampling 2024-02-12 12:11:01 -08:00
src upgrade from hip to massiv-io, move to nixpkgs unstable in the process 2024-02-22 23:43:28 -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 upgrade from hip to massiv-io, move to nixpkgs unstable in the process 2024-02-22 23:43:28 -08:00
flake.nix upgrade from hip to massiv-io, move to nixpkgs unstable in the process 2024-02-22 23:43:28 -08:00
fourmolu.yaml fourmolu.yaml 2024-02-09 02:11:50 -08:00
image-triangles.cabal upgrade from hip to massiv-io, move to nixpkgs unstable in the process 2024-02-22 23:43:28 -08: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