xxxxxxxxxx
let w = 7;
let h = 30;
let w2 = 30;
let h2 = 7;
function setup() {
createCanvas(874, 620);
background(255);
rectMode(CENTER);
}
function draw() {
background(255);
//let y = height/2;
for (let y = 0; y < 18; y += 1 ){
for (let x= 0; x < 27; x += 1) {
push ();
let c = color(255, 204, 0);
fill(c);
stroke(255);
rect(50 + x * 30,50+ + y * 30,w,h);
let d = color(205, 204, 0);
fill(d);
stroke(255)
rect(50 + x * 30,50+ + y * 30,w2,h2);
pop();
}
}
}