# Loops **Track:** Foundations — Creative Coding — the existing 50 **Framework / surface:** p5.js **Level:** Beginner **Prerequisites:** Variables **In one line:** Repeat code with a counter — draw a hundred things from one block. ## Theory, aesthetics & inspiration A loop repeats a block of code under the control of a counter, so a single instruction can produce a hundred marks. Iteration is the engine of pattern, and pattern is where order meets variation. The aesthetic lineage is serial and systematic: Sol LeWitt's permutational series, the optical rhythms of Bridget Riley, and above all Vera Molnár, who from the 1960s used algorithmic repetition with controlled disturbance to make drawings no hand could plan. The loop's quiet lesson is that richness need not come from effort but from structure — a few lines, run many times, with one value shifting each pass, yield complexity that feels both inevitable and alive.