Commits

illume  committed bc4440a

added a bit on doing multiple circles to make a wider circle.

  • Participants
  • Parent commits 29121f0

Comments (0)

Files changed (1)

File examples/aacircle.py

     screen = pygame.display.set_mode((500,500))
     screen.fill((255, 0, 0))
     s = pygame.Surface(screen.get_size(), pygame.SRCALPHA, 32)
-    pygame.gfxdraw.aacircle(s, 250, 250, 200, (0, 0, 0))
+    pygame.draw.line(s, (0,0,0), (250, 250), (250+200,250))
+
+    width = 1
+    for a_radius in range(width):
+        radius = 200
+        pygame.gfxdraw.aacircle(s, 250, 250, radius-a_radius, (0, 0, 0))
+
     screen.blit(s, (0, 0))
     pygame.display.flip()
     try: