xxxxxxxxxx
27
let rectWidth = 20;
let rectHeight = 100;
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
// let i = 10;
// while(i>0){
// print(i);
// i--
// }
for(let i = 10; i>0; i--){
}
}
function draw() {
background(220);
for(i=0; i<width; i+=rectWidth){ // i++ will just show big block i+= will show cut up block
rect(i + rectWidth/2, height/2, rectWidth, rectHeight);
}
}