Skip to content

The pygame.draw.aacircle function cannot draw arcs with a thickness of 2. #3682

@Fantastair

Description

@Fantastair

Environment:

Platform:               Linux-6.12.63+deb13-amd64-x86_64-with-glibc2.41
System:                 Linux
System Version:         #1 SMP PREEMPT_DYNAMIC Debian 6.12.63-1 (2025-12-30)
Processor:                      SSE2: Yes       AVX2: Yes       NEON: No
Architecture:           Bits: 64bit     Linkage: ELF

Python:                 CPython 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]
GIL Enabled:            True
pygame version:         2.5.6
SDL versions:           Linked: 2.32.10 Compiled: 2.32.10
SDL Mixer versions:     Linked: 2.8.1   Compiled: 2.8.1
SDL Font versions:      Linked: 2.24.0  Compiled: 2.24.0
SDL Image versions:     Linked: 2.8.8   Compiled: 2.8.8
Freetype versions:      Linked: 2.13.3  Compiled: 2.13.3

Display Driver:         Display Not Initialized
Mixer Driver:           Mixer Not Initialized
  • Relevant hardware: NVIDIA GeForce RTX 4060 Laptop GPU (Driver Version: 550.163.01), 2560×1600 high-DPI display, 150 % system scaling.

Current behavior:

The pygame.draw.aacircle function accepts a width parameter. When width > 0, it controls the thickness of the arc line. However, I've discovered this function cannot draw arcs with a width of 2. When width = 1, it draws an arc with a width of 1; when width > 1, it draws an arc with a width of width + 1. This means the actual widths that can be drawn are “1, 3, 4, 5, ...”.

Incidentally, I'm using the pygame.Window class to manage the window and have set allow_high_dpi=True for my high-DPI display, though I don't believe this should affect the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot working as intendeddrawpygame.draw

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions