xxxxxxxxxx
43
let numberOfSeeds = 6000;
let c = 4;
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
background('#FAF9F6');
// stroke('#FAF9F6');
// background('black');
translate(width/2,height/2);
for(let j=0; j < c; j++) {
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 190;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/50;
let y = radius * sin(angle) + height/20;
noFill();
// fill('#FAF9F6');
strokeWeight(0.05);
// stroke('black');
beginShape();
vertex(300, 10);
quadraticVertex(x/QUARTER_PI, y, x+30, y);
endShape();
// ellipse(x/QUARTER_PI, y, x, y);
// line(x2/QUARTER_PI, y2, x2, y2);
rotate(4);
}
}
}
// function draw() {
// background(220);
// }