Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches
Cope.experimental.pygame Namespace Reference

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)
 

Detailed Description

Functions & classes that extend the pygame library.