xxxxxxxxxx
54
let numberOfSeeds = 8000;
let c = 3;
function setup() {
createCanvas(7550, 7550);
angleMode(DEGREES);
// background('#FAF9F6');
background('black');
translate(width/2,height/2);
for(let i = 0; i < numberOfSeeds; i++) {
for(let j = 0; j < 3; j++) {
let angle = i * 137.5;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/300;
let y = radius * sin(angle) + height/300;
strokeWeight(0.3);
noFill();
// stroke('black');
// ellipse(x,y,x,y);
// ellipse(x, y, x, y);
beginShape();
stroke('black');
vertex(0, 0);
quadraticVertex(x/QUARTER_PI, y+3, x+5, y);
endShape();
beginShape();
stroke('white');
vertex(0,0);
quadraticVertex(x/30,y,x,y);
endShape();
rotate(x*2/y);
// translate(3,
// rotate(y/x);
// rotate(x/y);
translate(-1, 1);
// noLoop();
}
}
}
// function draw() {
// background(220);
// }