// Grid(x,y,dx,dy,color) function grid(x1,y1,x2,y2,dx,dy,c){ var sy=y1; while(sy<=y2){ uart(128,8,1,x1,sy,x2,sy,c); sy=sy+dy; sleep(1); } var sx=x1; while(sx<=x2){ uart(128,8,1,sx,y1,sx,y2,c); sx=sx+dx; sleep(1); } } // Sample Code uart("\nPC CLEAR 00\n"); grid(0,0,80,45,8,10,2);