pygame
pygame copied to clipboard
pygame.draw.polygons() function
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.
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().