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