xxxxxxxxxx
function setup() {
createCanvas(874, 620);
background(255);
rectMode(CENTER);
}
function draw() {
background(255);
//let y = height/2;
let g = 70
let s = 1/3
s = mouseX/1800
//s = 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(0);
fill(0);
rect(0, y, 80, 80)
stroke(0);
fill(0);
circle(0+40, y, 80)
stroke(0);
fill(0);
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
}