xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background("black");
}
var r= 0;
var x= 50 , y= 50;
var vx = 3, vy =3;
function draw() {
background(0,0,0,0.5);
ellipse(x, y, 50);
x = x+vx;
y = y+vy;
vy += 0.2;
if (y>height){
vy = -vy*0.6;
y=height
}
}