From 257f0f7d1ddb5b4f6f52577b33d3ff369a136061 Mon Sep 17 00:00:00 2001 From: Mateusz Dokowicz Date: Thu, 16 Mar 2023 21:49:06 +0100 Subject: [PATCH] TODO calculate radius --- Interface/grid_draw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Interface/grid_draw.py b/Interface/grid_draw.py index e3900e7..fb47608 100644 --- a/Interface/grid_draw.py +++ b/Interface/grid_draw.py @@ -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.