Generates and draws a dragon curve depending on the folds requested
This repository contains a Python script to draw dragon curves. With it you can visualize how a “Dragon curve” will look after a specified amount of folds. I was inspired by the amazing video of Numberphile regarding this topic It worths having a look! For more info about the “Dragon curve” click here.
Just open the script and type the amount of folds you will like to visualize. Be aware that the amount of lines increases exponentially!! So try not to type a crazy number or it will crash your python shell.
In future versions I intend to add other curve plotting types as well as an animation function to see the transition from the previous fold to the next.
You should install the following:
- Python
- Matplotlib
- numpy
I am aware that some parts could be optimized or are redundant for such small program. However I decided to make it as easy and simple as possible for anybody who is new to programming.