Simple Programs in Turtle Geometry

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration explores simple programs in turtle geometry, where an unseen turtle moves and traces a path according to provided instructions. If only one move-turn pair is used, the size of the forward step will have no affect on the image.


As an example, to draw a pentagon of side length 10, use one move-turn pair with 5 repetitions and set "turn 1" to right 72. As your instructions become more complicated, the turtle's paths will become more intricate.


Contributed by: Joshua Goldstein (May 2011)
Open content licensed under CC BY-NC-SA




[1] H. Abelson and A. diSessa, Turtle Geometry: The Computer as a Medium for Exploring Mathematics, Cambridge, MA: MIT Press, 1980.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.