Add support for rounded rects to surfaces #2695
Labels
enhancement
New API
This pull request may need extra debate as it adds a new class or function to pygame
transform
pygame.transform
Hello,
It would be great to add a way to round surface corners. I believe it wouldn't be difficult to implement it, since we do it manually in
pygame.draw.rect
. What do you think about adding a new function in transform sub module likepygame.transform.round_corners
?I'm pretty surprised no one is talking about it, maybe there is already a pretty efficient way to do that ? (Maybe there is even an issue already opened ?) I mean with blendmodes it's possible, but it isn't intuitive at all for beginners for example, and I believe we can optimise the process.
This feature would be helpful for everyone creating gui with buttons with rounded corners + texture.
The text was updated successfully, but these errors were encountered: