Credit to sticku for some of the formula code This is the construction of a dragon curve. Be warned that your computer will become very laggy after a few minutes
https://en.wikipedia.org/wiki/Dragon_curve