xxxxxxxxxx
27
i = 0;
y1 = 300;
function setup() {
createCanvas(800, 800);
background(197, 237, 216);
r = random(100, 800);
noFill();
line(0, 700, 800, 700);
}
function draw() {
translate(width / 2, height / 2);
stroke(random(0, 255));
var radius = r;
var angle = TAU / 100;
var x = cos(angle * i) * radius;
var y = sin(angle * i) * radius;
i = i + 0.1;
ellipse(0, y1, x, y);
y1 = y1 - 1;
if (y1 < -450) {
noLoop();
}
}