code: def current_frame(self):
          
          if not self._pause_level:
              return (
                  int((self._clock() + self._offset) * self.frames_per_second)
                  % len(self._frames)
              )
          else:
              return self._paused_frame
docs: Compute the number of the current frame (0-indexed)