I used to know almost all the features in processing like a year ago, and now I decided to get back and try again. I just made a simple script telling the console to show a circle with some gravity, and everything works fine but one thing. The circle is redrawing every frame, but not deleting the old frames. Just copy the code and try for yourself. Is there anything i did wrong? I also tried this ecsact code, but with a rectangle instead of an ellipse and everything worked.
float gravity = 0;
float y = 180;
void setup(){
size(640, 360);
background(0);
}
void draw(){
ellipse(320, y, 10, 10);
y = y + gravity;
gravity = gravity + 0.4;
}