Skip to content
No description, website, or topics provided.
Haskell Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
SVGFonts.nix
art.png
artResult.png
image-triangles.cabal
sierra.jpg
sierraResult.png

README.md

image-triangles

examples

example1Orig example1result example2Orig example2Result

to build:

make sure you have nix installed

curl https://nixos.org/nix/install | sh
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 aren’t 100% covered at the end?
  • The diagram needs a final bounding box that's the size of the picture that it comes from.
You can’t perform that action at this time.