1
0
Fork
You've already forked dragoncurve
0
Yesterday night I sat there thinking about how easy it would be to implement the dragoncurve in Haskell, and then how much easier it would become if one simply defines all iterations of the dragoncurve and that this would be a nice practice to learn to us
  • Haskell 100%
Find a file
2015年11月17日 10:18:40 +01:00
src Running code to produce a dragoncurve. 2015年11月17日 10:18:40 +01:00
dragoncurve.cabal Running code to produce a dragoncurve. 2015年11月17日 10:18:40 +01:00
LICENSE Initial commit 2015年11月17日 10:12:05 +01:00
README.md Running code to produce a dragoncurve. 2015年11月17日 10:18:40 +01:00
Setup.hs Running code to produce a dragoncurve. 2015年11月17日 10:18:40 +01:00
stack.yaml Running code to produce a dragoncurve. 2015年11月17日 10:18:40 +01:00

dragoncurve

Yesterday night I sat there thinking about how easy it would be to implement the dragoncurve in Haskell, and then how much easier it would become if one simply defines all iterations of the dragoncurve and that this would be a nice practice to learn to use Diagrams. Writing the curve-generation took approximately 30 minutes (I am slow). Creating a diagram was another 2 hours and then I had to find out to use -S instead of -s on the commandline. for diagram selection over the course of two days. Funny world. Yet that's the way it is. Have fun.

INSTALLATION

I actually just started to use stack, which means you might run into trouble.

But with me a combination of

  • stack build
  • stack install

got me to the point where I could call dragoncurve from some directory

RUNNING

The main hint is, that you have to select an output file using -o and one of the iterations using -S . Current output format probably is SVG. (I have not gotten around playing with the output formats and would like hints how to do a proper GUI using Diagrams).