title: How to set the pivot point (center of rotation) for pygame.transform.rotate()?
body: <p>I want to rotate a rectangle about a point other than the center. My code so far is:</p>
  
  <pre><code>import pygame
  
  pygame.init()
  w = 640
  h = 480
  degree = 45
  screen = pygame.display.set_mode((w, h))
  
  surf = pygame.Surface((25, 100))
  surf.fill((255, 255, 255))
  surf.set_colorkey((255, 0, 0))
  bigger = pygame.Rect(0, 0, 25, 100)
  pygame.draw.rect(surf, (100, 0, 0), bigger)
  rotatedSurf = pygame.transform.rotate(surf, degree)
  screen.blit(rotatedSurf, (400, 300))
  
  running = True
  while running:
      event = pygame.event.poll()
      if event.type == pygame.QUIT:
          running = False
      pygame.display.flip()
  </code></pre>
  
  <p>I can change the degree to get different rotation but the rotation is about the center. I want to set a point other than the center of the rectangle as the rotation point.</p>