xxxxxxxxxx
13
function setup() {
createCanvas(300, 300);
background(240)
let foo = 50; // create and initialize a variable
if (foo < width) { // keep going as long as the condition is true
ellipse(foo, 50, 40, 40);
// modify the variable so something different happens next time
foo = foo + 50;
}
}