xxxxxxxxxx
23
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
}
function draw() {
background(100);
noStroke();
fill(255);
let r=0;
for (var x = 40; x < 400; x = x + 40) {
for (var y = 40; y < 400; y = y + 40) {
push();
translate(x, y);
rotate(r);
arc(0,0,30,30, 0, 180);
pop()
//try changing the amount that the r variable
//is incrementing to see how it affects the composition
r+=10;
}
}
}