pygame icon indicating copy to clipboard operation
pygame copied to clipboard

pygame.draw.polygons() function

Open itzpr3d4t0r opened this issue 3 years ago • 1 comments
trafficstars

Implements one of #3269. Follows #3324. This one implements the polygons() function for drawing many polygons at once. The function's use case should be heterogeneous polygon sequences, with both hollow and filled ones of different scales and colors.

itzpr3d4t0r avatar Jul 03 '22 08:07 itzpr3d4t0r

Right now this function is between 20-30% faster for drawing hollow polygons and between 5-7% faster for filled ones. And I'm comparing it to a for loop + pygame.draw.polygon().

itzpr3d4t0r avatar Jul 03 '22 10:07 itzpr3d4t0r