Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
pygame Cope.experimental.pygame.rotated_image = pygame.transform.rotozoom(surface, -angle, 1) |
Rotate the surface around the pivot point.
Args: surface (pygame.Surface): The surface that is to be rotated. angle (float): Rotate by this angle. pivot (tuple, list, pygame.math.Vector2): The pivot point. offset (pygame.math.Vector2): This vector is added to the pivot.