xxxxxxxxxx
# If you have an image, you can rotate it like so
pygame.transform.rotate(YOUR_IMAGE, DEGREES)
# However this will not work on basic surfaces, as it will seem to warp
# the surface
# However, if we add the SRCALPHA flag to our surface, it will work!
# Ex.
YOUR_SURFACE = pygame.Surface((HEIGHT, WIDTH), pygame.SRCALPHA)
pygame.transform.rotate(YOUR_SURFACE, DEGREES)