TODO calculate radius
This commit is contained in:
parent
3696636245
commit
257f0f7d1d
@ -53,5 +53,7 @@ class GridDraw:
|
|||||||
self.line(0, tiles_height * i, self.width, tiles_height * i, color=color)
|
self.line(0, tiles_height * i, self.width, tiles_height * i, color=color)
|
||||||
|
|
||||||
@default_color
|
@default_color
|
||||||
def circle(self, x, y, radius, color=None):
|
def circle(self, x, y, color=None):
|
||||||
pygame.draw.circle(self.screen, color, (x, y), radius)
|
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