Friday 2 December 2005

Fractal curves in Python

We've set our first year students the task of drawing some fractal curves in Python with the fantastic turtle module. Apparently the Dragon curve is a pain, so here's an alternative starting point for anyone getting stuck: the Torn Square curve. I've included shots of part of the curve after one and two recursive calls; just to give an idea of how the shape is constructed.



No comments:

Post a Comment