def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2): """ Draw an arc centered at x,y with width and height and angles from 0.0 to 360.0. If rgbFace is not None, fill the rectangle with it. gcEdge is a GraphicsContext instance """ arc = paint.arc(x-0.5*width, self.height - (y-0.5*height), x+0.5*width, self.height - (y+0.5*height), angle1, angle2) if rgbFace: self.image.fill(arc, self.get_paint_color(rgbFace)) self.image.stroke(arc, self.get_paint_color(gcEdge.get_rgb()), self.points_to_pixels(gcEdge.get_linewidth()))
def draw_arc(self, gcEdge, rgbFace, x, y, width, height, angle1, angle2): """ Draw an arc centered at x,y with width and height and angles from 0.0 to 360.0. If rgbFace is not None, fill the rectangle with it. gcEdge is a GraphicsContext instance """ arc = paint.arc(x - 0.5 * width, self.height - (y - 0.5 * height), x + 0.5 * width, self.height - (y + 0.5 * height), angle1, angle2) if rgbFace: self.image.fill(arc, self.get_paint_color(rgbFace)) self.image.stroke(arc, self.get_paint_color(gcEdge.get_rgb()), self.points_to_pixels(gcEdge.get_linewidth()))