Skip to content
Snippets Groups Projects
Unverified Commit a5726d75 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

swap the colors

parent fc588184
Branches
No related tags found
No related merge requests found
......@@ -68,15 +68,15 @@ class Canva:
if isinstance(res, list) and isinstance(res[0], int):
for p, c in zip(self.points, res):
if c == 0:
color = (255, 0, 0)
color = (0, 255, 0)
elif c == 1:
color = (255, 128, 0)
color = (128, 255, 0)
elif c == 2:
color = (255, 255, 0)
elif c == 3:
color = (128, 255, 0)
color = (255, 128, 0)
else:
color = (0, 255, 0)
color = (255, 0, 0)
pygame.draw.circle(self.screen, color, (p.x, p.y), p.r)
else:
qtree, range = res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment