# Arrays **Track:** Foundations — Creative Coding — the existing 50 **Framework / surface:** p5.js **Level:** Beginner **Prerequisites:** Loops **In one line:** Store and draw many values at once — the data behind almost every generative sketch. ## Theory, aesthetics & inspiration An array stores many values under one name, addressed by index, so a program can hold and manipulate a population rather than a single thing. This is the data structure behind multiplicity, and multiplicity is where emergence lives: hundreds of particles, each with its own position and velocity, stepped together in a loop. Craig Reynolds's 1987 "Boids" showed that a few local rules over such a collection yield flocking — coherent group behavior no individual encodes — and Daniel Shiffman's "The Nature of Code" made this the heart of creative coding. Aesthetically, the array lets the artist tend a system of many agents instead of drawing each by hand.