g:=10;repeaty:=0;repeatsetcolor(255,255,255);fillrect(0,0,240,320);fillrect(10,y,10,10);repaint;delay(1000);y:=y+v;v:=v+g;until y>=320;until false;