xxxxxxxxxx
let w = 75;
let h = 75;
let g = 50
function setup() {
createCanvas(874, 620);
background(0);
noFill()
}
function draw() {
background(0)
g = map (mouseX, 0, width, 25, 200);
for (let y = 0; y < 4; y++){
for (let i=0; i<6; i++){
push();
translate(i * g, y * g);
stroke(random(0,200))
//strokeWeight(20)
let s = map(i, 0, 6, 2, 20);
strokeWeight(s)
rect(75+i*75, 75+y*75, w, h);
//rotate(second())
rect(100+i*75, 100+y*75, w, h)
pop();
}
}
}