sketch
function setup() {
createCanvas(600, 600);
background(250,233,208);
}
function draw() {
for (let y = 0; y < 10; y++) { //setting up array for the shapes
for (let x = 0; x < 8; x++ ) {
push()
translate(x*80,y*60);
leftsrf()
rightsrf()
pop()
}
}
}
function leftsrf() {
noLoop()
var r = random(0,250);
var g = random(0,250);
var b = random(0,250);
fill(r,g,b) ;
quad(0,0,0,40,40,60,40,20);
}
function rightsrf() {
noLoop()
var r = random(0,250);
var g = random(0,250);
var b = random(0,250);
fill(r,g,b)
quad(40,20,80,0,80,40,40,60)
}