xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
rows = height / 100;
cols = width / 100;
colors=["#1f271b","#0b4f6c","#145c9e","#cbb9a8","#dcc7be"]
background("#145C9E");
mousePressed();
}
function mousePressed() {
var index = 0;
for (let r = 0; r < rows; r++) {
for (let c = 0; c < cols; c++) {
push();
translate(c * 100, r * 100);
fill(random(colors));
noStroke();
arc(0, 0, 200, 200, 0, HALF_PI);
pop();
}
}
}