code: def pause(self):
          
          if self.state == PygAnimation.PLAYING:
              self.elapsedAtPause = self.elapsed
              # only change state if it was playing
              self.state = PygAnimation.PAUSED
  
          elif self.state == PygAnimation.STOPPED:
              pass  # nothing to do
  
          elif self.state == PygAnimation.PAUSED:
              pass
docs: Pauses a playing animation.  A subsequent call to play will continue where it left off.