By programming objects (AKA agents) to move while leaving a trail behind, you can enlist the computer to collaborate with you on interesting generative designs.
I. Simple Agents
Here’s How it Works:
II. Complex Agents
Programs can be fine tuned for more control over the design output.
Run the following code and see if you can guess what rules the program has set to control the agents (without looking at the comments).
III. 3D Forms from Shapes
In this code, a circle’s trail forms 3D tubes. The points of the circle randomly shift along its curve and morph the tube into new shapes.
IV. Growth Structures from Agents
Complex patterns are derived from the propagation of simple shapes. Here the instructions are: “Draw a new circle and position it as close as possible to its nearest neighbor.”
This type of algorithm also describes the growth processes found in plants and minerals.
V. Structural Density From Shape Repetition
Here the code packs in the circles so densely that gaps are closed.