like this? x=0 @loop gline x,100,0,100 wait 1 goto @loop