xxxxxxxxxx
52
function setup() {
createCanvas(1080, 1080);
}
function draw()
//gridz
{
background(0);
fill(0)
strokeWeight(4)
let jump = 270;
// two for loops are needed to make a grid of squares
// the outer loop controls how many rows are made
// the inner loop controls how many columns are made
for (let y = 0; y < 4; y++) {
for (let x = 0; x < 4; x++) {
rect(x * jump + 4, y * jump + 4, 270, 270);
}
//shape 1
fill(242,68,5)
circle(139,139,270,270)
//shape 2
fill(217,24,165)
circle(139,139,200,200)
//shape 3
fill(242,68,5)
circle(139,139,150,150)
//shape 4
fill(217,24,165)
circle(139,139,100,100)
//shape 5
fill(242,68,5)
circle(139,139,60,60)
//shape 6
fill(217,24,165)
circle(139,139,30,30)
}
}