This is a simple dragon curve drawer. Select the amount of iterations you want it to run for. Then press 'space' and see the results. Set slow to 1 if you want to see it draw the curve line by line (I wouldn't recommend setting the iterations above 11 for slow mode). The turns variable is the total number of turns in the curve and the iteration variable is what iteration it's on. Press 'h' to hide the variables.
If your wondering what the white lines in the curve are when you set the iterations below 17. They are caused by the length of each section of the curve being a number that has to be rounded to a pixel but the position of the drawer is not. So eventually the position of the drawer reaches a point where it gets rounded up so it skips a pixel leaving a white gap.