xxxxxxxxxx
function setup() {
createCanvas(874, 620);
background(0);
rectMode(CENTER);
}
function draw() {
background(120, 34, 34, 5);
//let y = height/2;
let g = 70
let s = 1/3
s = mouseX/2500
//c = mouseY/-1800
//g = mouseX/10
for (let y=1; y<8; y+=1) {
for (let x=1; x<11; x+=1) {
push();
let a = map (x, 0, 10, 0, PI*10)
translate(40 + x * g, 40 + y * g)
rotate(a+4);
scale(s);
stroke(255);
fill(255);
rect(0, y, 80, 80)
stroke(255);
fill(255);
circle(0+40, y, 80)
stroke(255);
fill(255);
circle(0, y+40, 80)
pop();
}
}
//20+y*190
//(60+y*190)-40
//(20+y*190)+40
//20+x*190
//(60+x*190)
//20+x*190
}