optimization #5
@ -53,5 +53,7 @@ class GridDraw:
|
||||
self.line(0, tiles_height * i, self.width, tiles_height * i, color=color)
|
||||
|
||||
@default_color
|
||||
def circle(self, x, y, radius, color=None):
|
||||
pygame.draw.circle(self.screen, color, (x, y), radius)
|
||||
def circle(self, x, y, color=None):
|
||||
pygame.draw.circle(
|
||||
self.screen, color, (x, y), 20
|
||||
) # TODO calculate radius (now 15) in terms of window size.
|
||||
|
Loading…
Reference in New Issue
Block a user