Description
pygame.draw.rect() provides functionality to draw both regular rectangles and rounded rectangles, but it does not support anti-aliasing.
In contrast, other pygame.draw primitives already have dedicated anti-aliased counterparts:
draw.circle() --- draw.aacircle()
draw.line() --- draw.aaline()
draw.lines() --- draw.aalines()
So I'm wondering if we should also add an anti-aliasing version for draw.rect() (e.g., pygame.draw.aarect()).
I am willing to take on the implementation of this interface and submit a corresponding pull request after getting positive feedback on this issue.
Description
pygame.draw.rect()provides functionality to draw both regular rectangles and rounded rectangles, but it does not support anti-aliasing.In contrast, other pygame.draw primitives already have dedicated anti-aliased counterparts:
draw.circle()---draw.aacircle()draw.line()---draw.aaline()draw.lines()---draw.aalines()So I'm wondering if we should also add an anti-aliasing version for
draw.rect()(e.g.,pygame.draw.aarect()).I am willing to take on the implementation of this interface and submit a corresponding pull request after getting positive feedback on this issue.