A convenient package to display still or animated images organized as a series of still images.
|paths||A list of URLs or Two.Textures.|
|ox||The initial |
|oy||The initial |
|frameRate||The frame rate at which the images should playback at.|
default frame rate that Two.ImageSequence.frameRate is set to when instantiated.
A list of textures to be used as frames for animating the Two.ImageSequence.
The index of the current tile of the sprite to display. Defaults to
|firstFrame||The index of the frame to start the animation with.|
|lastFrame||The index of the frame to end the animation with. Defaults to the last item in the Two.ImageSequence.textures.|
|onLastFrame||Optional callback function to be triggered after playing the last frame. This fires multiple times when the image sequence is looped.|
Initiate animation playback of a Two.ImageSequence.
Halt animation playback of a Two.ImageSequence and set the current frame back to the first frame.
|parent||The parent group or scene to add the clone to.|
Create a new instance of Two.ImageSequence with the same properties of the current image sequence.