xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let size = width * 0.0525;
for (let o1 = size; o1 <= width-size; o1 += size*5 ) {
for (let o2 = size; o2 <= height-size; o2 += size*5) {
// push();
// rectMode(CENTER);
// translate(o1, o2);
// if ((o2) % 3 == 0){
// // rotate(.5);
// fill(255);
// } else {
// // rotate(random(0,1))
// fill(0);
// }
quad(o1, o2, 20+o1, 20+o2, 40+o1, 63+o2, 40+o1, 80+o2);
// pop();
noLoop();
}
}
}