title: What is the surface.blit() function in pygame? What does it do? How does it work?
body: <p>I am a beginner in Python and I am not clear about the function <code>surface.blit()</code>. What does it do? How does it works?</p>
  
  <p>I have come across the following points as to how to create it.</p>
  
  <ul>
  <li>Create a canvas of desired size</li>
  <li>Create a surface of smaller size containing the object to be displayed.</li>
  <li>Define the Rect value of the surface.</li>
  <li>Blit (overlap) the surface on the canvas at the rect position</li>
  </ul>
  
  <p>Syntax: <code>canvas.blit(surface, surfacerect)</code></p>
  
  <p><strong>Why is only rect used? Can it be any other shape?</strong></p>