graphics.quadTo(edgeCntrl1.x,edgeCntrl1.y,end.x,end.y);
graphics.quadTo(edgeCntrl2.x,edgeCntrl2.y,edge2.x,edge2.y);
graphics.lineTo(inter2.x,inter2.y);
graphics.lineTo(start2.x,start2.y);
graphics.lineTo(start1.x,start1.y);
graphics.closePath();
int[] rules = new int[8];
//all possible Compositing Rules:
rules[0] = AlphaComposite.SRC_OVER;