How to Flip Image in Pygame

See pygame.transform.flip():

flip(Surface, xbool, ybool) -> Surface

This can flip a Surface either vertically, horizontally, or both.

pygame.transform.flip() flips creates a new Surface from the source Surface which is flipped. e.g:

my_flipped_image = pygame.transform.flip(my_image, True, False); 

Leave a Comment