xxxxxxxxxx
17
let rectSize = 20;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(50);
noStroke();
for (let y = 0; y < height; y += rectSize) {
fill(random(255), random(255), random(255));
rect(0, y, width, rectSize);
}
noLoop();
}