def set_fps(self, fps):
        """Sets the fps (frames per second) that this animation should play at.

        Args:
            fps: Integer value for how many fps you would like this animation to
                play at.

        If this animation is currently playing, this method will change the
        current playback rate.
        """
        self.fps = fps
        self.secs_per_frame = (1 / float(self.fps))
        self.next_frame_time = 0  # forces this to take place immediately
dataset/ETHPy150Open missionpinball/mpf/mpf/media_controller/elements/animation.py/AnimationDisplayElement.set_fps/original