Skip to content

gfxdraw.aacircle weird lines when large radius #2450

@mzivic7

Description

@mzivic7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intendedgfxdrawpygame.gfxdraw

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions