float x,y; void setup() { size(400,400); framerate(15); x=width/2; y=height/2; } void loop() { background(200); line(50,y, 350,y); y=y+2f; if(y>height) y=0; }