Type
SpriteAnim
: number | {from
?: numberThe starting frame.
to
?: numberThe end frame.
loop
?: booleanIf this anim should be played in loop.
pingpong
?: booleanWhen looping should it move back instead of go to start frame again.
speed
?: numberThis anim's speed in frames per second.
frames
?: number[]List of frames for the animation.
If this property exists, from, to, and pingpong will be ignored.
Frame-based animation configuration.