1 2 3 4 5 6 7 8 9 10 11 12 | // Rect(x1,y1,x2,y2,color) function rect(x1,y1,x2,y2,c){ pc.line(x1,y1,x2,y1,c); pc.line(x2,y1,x2,y2,c); pc.line(x2,y2,x1,y2,c); pc.line(x1,y2,x1,y1,c); } // Sample Code var pc= new PanCake(); pc.reset(0); pc.clear(0); rect(4,2,52,23,3); |