def draw_ellipse(self, position, size, fill=None): assert self.dc draw = self.dc[1] x1, y1 = position x2 = x1 + size[0] y2 = y1 + size[1] draw.ellipse([x1, y1, x2, y2], fill=fill)
def draw_ellipse(self, position, size, fill=None): draw = self.dc[1] x1, y1 = position x2 = x1 + size[0] y2 = y1 + size[1] x1, y1 = self.calc_mag((x1, y1)) x2, y2 = self.calc_mag((x2, y2)) draw.ellipse([x1, y1, x2, y2], fill=fill)