title: How to capture pygame screen?
body: <p>How can I capture and save a sequence of images or a video of a pygame screen? <br />
  Basically I want to share my game video on youtube. Also, want to make a tutorial.</p>
  
  <p>The game is rendered mainly in a loop:</p>
  
  <pre><code>def main():
      while True:
          GetInput()
          Move()
          Shift()
          Draw()
  </code></pre>
  
  <p>With the <code>Draw()</code> function doing all the <code>blit()</code> and stuff before doing the <code>pygame.display.flip()</code></p>