xxxxxxxxxx
47
let numberOfSeeds = 4000;
let c = 3;
function setup() {
createCanvas(5550, 5550);
angleMode(DEGREES);
background('#FAF9F6');
translate(width/2,height/2);
for(let i = 0; i < numberOfSeeds; i++) {
for(let j = 0; j < 10; j++) {
let angle = i * 137.3;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/2000;
let y = radius * sin(angle) + height/2000;
strokeWeight(0.3);
noFill();
// stroke('black');
// ellipse(x,y,x,y);
// ellipse(x, y, x, y);
beginShape();
stroke('black');
vertex(10, 0);
quadraticVertex(x/QUARTER_PI, y+1, x+100, y);
endShape();
stroke('white');
line(x,y,x,y);
rotate(x*3/y);
// translate(3,
// rotate(y/x);
// rotate(x/y);
translate(-1, 1);
// noLoop();
}
}
}
// function draw() {
// background(220);
// }