// Arc(x,y,r,startAngle,endAngle,color) function arc(x,y,r,s,e,c){ var ox=x+sin8(s+90)*r>>8; var oy=y+sin8(s)*r>>8; var step=(e-s)*r/360; while(s<=e){ var ax=x+sin8(s+90)*r>>8; var ay=y+sin8(s)*r>>8; uart(128,8,1,ox,oy,ax,ay,c,"\n"); ox=ax; oy=ay; s=s+step; } } // Sample Code uart("\nPC CLEAR 00\n"); arc(40,20,20,0,270, 2);