code: def _advance_frame(self):
          
          self.current_frame += 1
          if self.current_frame == self.frame_len:
              self.current_frame = 0
docs: Sets `self.current_frame` to the next frame, looping to the
              beginning if needed.