xxxxxxxxxx
41
let numberOfSeeds = 1000;
let c = 20;
function setup() {
createCanvas(5000, 5000);
angleMode(DEGREES);
background('#FAF9F6');
// background('black');
translate(width/2,height/2);
for(let i = 0; i < numberOfSeeds; i++) {
for(let j=0; j < 10; j++) {
let angle = i * 300;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/20;
let y = radius * sin(angle) + height/20;
// noFill();
// fill('#FAF9F6');
strokeWeight(0.1);
// stroke('#FAF9F6');
beginShape();
noFill();
vertex(0,0);
quadraticVertex(x*PI, y/2, x, y);
// line(x2/QUARTER_PI, y2, x2, y2);
endShape();
rotate(j);
translate(-3,5);
}
}
}
// function draw() {
// background(220);
// }