def __init__(self, frames):
        assert len(frames)
        self.frames = frames
Create an animation directly from a list of frames.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/Animation.__init__