Open
Description
These functions must be implemented to pygame.draw
module in order to deprecate pygame.gfxdraw
module:
- draw.aacircle() #2800
- thickness
- filled
- draw.aaline
- draw.aalines
- Add draw.aaellipse #3016
- thickness
- filled
- Add draw.aapolygon #3126
- thickness
- filled
- Add warning when using negative rect dimensions in draw module #3158
- draw.textured_polygon
- Add bezier from
gfxdraw
module todraw
module #3009 - Fix segfault with antialiased draw functions with a depth different than 32bits #3008
- Deprecate
gfxdraw
but keep the functionality #3010 (deprecation warning + notice in the docs)
gfxdraw can be deprecated after implementing all above listed functions and it gets removed in pygame-ce 3 or later.
Deprecating gfxdraw closes:
- Add line thickness in gfxdraw #2463
- gfxdraw.aacircle weird lines when large radius #2450
- wasm: gfxdraw not working correctly #2082
- Antialiasing inside surface issue (3500) #1728
- gfxdraw.circle, .aacircle, .filled_circle, .arc and .pie all add a central pixel, making circles 1 px too big. (2924) #1487
- The gfxdraw functions do not support mapped colors (1126) #679
- SDL2: gfxdraw.aa* functions segfault with 8-bit surfaces (849) #586
- gfxdraw will be replaced by pygame.draw (157) #172