// Cloned by Martin Derwin on 27 Sep 2022 from World "Tutorial 4.2 (0)" by "Coding Train" project // Please leave this clone trail here. /* https://vimeo.com/channels/learningp5js/139013372 */ var offset = 0; function setup() { createCanvas(600, 400); } function draw() { background(0); strokeWeight(4); stroke(255); for (var x = 0; x <= width; x += 50) { fill(random(255), 0, random(255)); ellipse(x + offset, 200, 25, 25); } offset = offset + 1; }