title: Creating a window in pygame without displaying it
body: <p>I create a screen in pygame using:</p>
  
  <pre><code>screen = pygame.display.set_mode((width,height))
  </code></pre>
  
  <p>Then I draw 200 random gray scale circles on it and save the screen as an image. (I need to save this screen as an image so I can compare it to a target image later on):</p>
  
  <pre><code>pygame.image.save(screen, "Circles.png")
  </code></pre>
  
  <p>Now, I need to randomly change different parameters of different circles by putting the numpy array that contains the circle parameters for all the circles in a loop with a big number as its iteration value.</p>
  
  <p>And I need to redraw the mutated circles on a screen (at the end of each iteration) and save that screen as a png image again. </p>
  
  <p>Now the problem is, every time I use <code>pygame.display.set_mode((width,height))</code> it opens up the display window and it significantly slows down my program.</p>
  
  <p>I would like to create a screen and save it in a variable but don't need to display that screen at each iteration. I haven't been able to figure out what command to use to avoid displaying the screen.</p>
  
  <p>I appreciate your help. </p>