Script library for fast drawing of lines, rectangles, arcs, circles.
line(x1,y1,x2,y2,c): draws a line of color c from (x1,y1) to (x2,y2); x1, y1, x2, y2 can be floating-point numbers;
rect(x1,y1,x2,y2,c): draws a rectangle of color c from (x1,y1) to (x2,y2); x1, y1, x2, y2 must be integer numbers;
arc(x0,y0,x,y,a,c): draws an arc of color c with center (x0,y0) and amplitude a (in radians) starting from point (x,y); if a>0 the arc is drawn in clockwise direction, if a<0 the arc is drawn in anti-clockwise direction; x0, y0, x, y, a can be floating-point numbers;
circle(x0,y0,r,c): draws a circle of color c with center (x0,y0) and radius r; x0, y0, r can be floating-point numbers.