Recursion

- worlds within worlds

xlogo

Recursion occours when a procedure calls itself. This leads to some efficient programming techniques.

To prevent an infinite loop, the first line is usually a breakout test. If a variable eg size or line length is too small, the command stop breaks out of the procedure.

Recursive dreamer image.

Antenna Tree
Antenna Tree curve.

Binary Switch
A divide by two selector switch.

Circles
Recursive circles.

Cross
A series of recursive crosses.

Edge
A recursive edge of tiles.

GoldSqrs
Recursive Fibbonacci sized squares fractal.

Hexagons
A series of recursive hexagons.

Mesh
Regular lattice.

Pentagons
Series of recursive pentagons.

Sphinx
Repeating sphinx shape.

Spinning Squares
A series of recursive squares one inside the other.

Squares Center
A series of recursive centered squares.

Squares Corner
A series of recursive corner squares.

YinYang
YinYang symbol.

Hexagons
Hexagons