// 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);