Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
Functions & classes that extend the pygame library. More...
Functions | |
def | rotateSurface (pygame.Surface surface, float angle, tuple|list|pygame.math.Vector2 pivot, pygame.math.Vector2 offset) |
Variables | |
try : | |
pass | except |
else : | |
pygame | rotated_image = pygame.transform.rotozoom(surface, -angle, 1) |
Rotate the surface around the pivot point. | |
offset | rotated_offset = offset.rotate(angle) |
pygame | rect = rotated_image.get_rect(center=pivot+rotated_offset) |
Functions & classes that extend the pygame library.