def draw_raw_circle_border(self, circle, width, color): safe_operator = self._no_error x, y = trunc(circle.x), trunc(self.height - circle.y) renderer = self._renderer if width == 1: radius = trunc(circle.radius) safe_operator(gfx.aacircleRGBA(renderer, x, y, radius, *color)) else: # Very ugly hack! can it be better? min_r = trunc(circle.radius - width / 2) max_r = trunc(circle.radius + width / 2) for r in range(min_r, max_r): safe_operator(gfx.aacircleRGBA(renderer, x, y, r, *color))
def draw_raw_circle_solid(self, circle, color): self._no_error( gfx.filledCircleRGBA(self._renderer, trunc(circle.x), trunc(self.height - circle.y), trunc(circle.radius), *color)) self._no_error( gfx.aacircleRGBA(self._renderer, trunc(circle.x), trunc(self.height - circle.y), trunc(circle.radius), *color))
def draw_raw_circle_solid(self, circle, color): self._no_error( gfx.filledCircleRGBA( self._renderer, trunc(circle.x), trunc(self.height - circle.y), trunc(circle.radius), *color)) self._no_error( gfx.aacircleRGBA( self._renderer, trunc(circle.x), trunc(self.height - circle.y), trunc(circle.radius), *color))