xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
}
function draw() {
//loop to draw smaller squares after each iteration
rectMode(CENTER)
background(220);
for( let i =100; i>=0; i-=10){
noFill()
print(i);
fill(random(255),random(255),random(255))
rect(width/2,height/2,i,i)
print("next\n"+i)
}
}