F1 · A picture made from repeated rules
Follow a repeated rule and distinguish its settings from its starting state.
4–6 min · Before this: None — start here.
Notice
How can the same short instruction make a whole picture?
Understand
An algorithm is a set of instructions. Generative art repeats those instructions, letting one step build on the last. An iteration is one application of the rule: use the answer from this step as the input to the next.
A state records what the system is like right now. Its starting state is its initial condition. A parameter is a setting inside the rule. The number of iterations tells us how many times to apply it. These are three different choices.
Work it through
Try a number before a picture. Let x mean the current value. The small label “next” means the value after one update; it is not multiplication.
Start with 0. Half of 0 plus 1 is 1. Half of 1 plus 1 is 1.5. Half of 1.5 plus 1 is 1.75. Our sequence is 0 → 1 → 1.5 → 1.75.
This sequence approaches 2. At 2, the rule gives 2 again: a fixed point. Other rules can grow without limit or have more intricate behaviour. Repetition does not always mean a repeating answer.
Check your understanding
What comes after 1.75?
Reveal the explanation
Half of 1.75 is 0.875. Add 1 to get 1.875. The next gap to 2 is half as large as before.
Connect it
In the First branching Lab, the grammar is a rule, depth sets the number of rewrites, and the drawing starts from an initial symbol. In reaction-diffusion, the starting state is a whole grid.