Pygame rotating rectangles | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Pygame rotating rectangles

Does anyone know how to rotate a rectangle (not an image or sprite) with or without losing quality?

9th Aug 2019, 1:30 PM
Bekir Kağan Karaahmetoğlu
Bekir Kağan Karaahmetoğlu - avatar
1 Réponse
+ 3
when you draw anything. drawing_surface = pygame.draw.rect(...) They return a surface object, just like images and font rendering do. But I have no idea how to rotate it, other ways than the given one.
9th Aug 2019, 8:00 PM
Seb TheS
Seb TheS - avatar