pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

gfxdraw.aacircle weird lines when large radius

Open mzivic7 opened this issue 1 year ago • 2 comments

Environment:

  • Operating system: Linux(Arch), Windows
  • Python version: 3.11.5
  • SDL version: 2.26.5
  • PyGame version: 2.3.2

Current behavior:

gfxdraw.aacircle draws weird lines when radius is larger than about 1000.

Expected behavior:

To draw nice and round anti-aliased circle.

Screenshots:

Screenshot from 2023-09-12 13-38-24

Test code:

import pygame
from pygame import gfxdraw
pygame.init()
screen = pygame.display.set_mode((1000, 800))
run = True
while run:
    for e in pygame.event.get():
        if e.type == pygame.QUIT: run = False
    screen.fill((0, 0, 0))
    gfxdraw.aacircle(screen, -500, 1000, 1200, (255,255,255))   # radius = 1200
    pygame.display.flip()
pygame.quit()

Task to close this issue

  • [ ] deprecate pygame.gfxdraw.aacircle

mzivic7 avatar Sep 12 '23 11:09 mzivic7