xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
}
let y = 0;
let direction = 1;
function draw() {
background(240);
ellipse(height / 2, y, 20);
y = y + direction;
if (y > height || y < 0); {
direction = direction * -1;
}
}