Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
This demonstrates a turtle‐graphics-based construction of a square‐filling curve. A robot turtle can be given instructions to walk forward, or to turn left or right. The path taken by a programmed turtle, called turtle-graphics, can lead to many interesting pictures. Here, a turtle is given instructions that wind up visiting more and more of a square.
Contributed by: Michael Trott (March 2011)
Open content licensed under CC BY-NC-SA
Wolfram Demonstrations Project
Published: March 7 2011