TODO calculate radius

This commit is contained in:
Mateusz Dokowicz 2023-03-16 21:49:06 +01:00
parent 3696636245
commit 257f0f7d1d

View File

@ -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.