A photo filter.
Find a file
2018-12-25 22:22:05 -05:00
src Reverse order of triangles (fixes opacity issue) 2018-12-25 22:22:05 -05:00
.gitignore Update .gitignore 2018-12-24 23:52:26 -05:00
image-triangles.cabal it got stupid fast 2018-12-24 22:48:45 -05:00
LICENSE parallelism 2018-12-18 01:32:49 -05:00
project.nix it got stupid fast 2018-12-24 22:48:45 -05:00
README.md fixed infinite loop on shared Y coordinates 2018-12-24 01:02:00 -05:00
release.nix swap to nix and working version with multiple faded triangles 2018-12-17 14:25:59 -05:00
shell.nix swap to nix and working version with multiple faded triangles 2018-12-17 14:25:59 -05:00
sierra.jpg parallelism 2018-12-18 01:32:49 -05:00
SVGFonts.nix swap to nix and working version with multiple faded triangles 2018-12-17 14:25:59 -05:00

image-triangles

make sure you have nix installed

curl https://nixos.org/nix/install | sh

to build:

nix-build

run with

./result/bin/image-triangles -o output.svg

to develop on:

cabal --enable-nix build

or

echo "nix: True" >> ~/.cabal/config
cabal build

run with

./dist/build/image-triangles/image-triangles -o output.svg

todo

  • Confirm diagrams is rendering triangles in the correct places.
  • Cache transformations to the colors library
  • Hip has a map transformation. It also depends on the colours library, does it use it?
  • In addition, hip has interfaces to arrays that support operations like map
  • Check that hip colors are srgb
  • Think about opacity. What if everything was completely opaque? What should we do with areas that arent 100% covered at the end?
  • The diagram needs a final bounding box that's the size of the picture that it comes from.