xxxxxxxxxx
28
i = 0;
y1 = -50;
function setup() {
createCanvas(800, 800);
background(255);
fill(0);
ellipse(250, 250, 30, 40);
ellipse(550, 250, 30, 40);
noFill();
}
function draw() {
translate(width / 2, height / 2);
if (y1 < 170) {
stroke(0, 100);
strokeWeight(random(3))
var radius = random(500);
var angle = TAU / 200;
var x = sin(angle * i) * radius / 2;
var y = cos(angle * i) * radius;
i = i + 0.3;
ellipse(0, y1, x, y);
y1 = y1 + 1;
}
}