Animation

class Animation<KeyFrameType>(val frames: List<KeyFrameType>, val frameIndices: List<Int>, val frameTimes: List<Duration>)

Animation based class that holds info on what frames to be animating. Recommended to be used with AnimationPlayer to assist in playing back the frames.

Author

Colton Daily

See also

Parameters

KeyFrameType

the type to be used as the key frame.

Constructors

Link copied to clipboard
fun <KeyFrameType> Animation(frames: List<KeyFrameType>, frameIndices: List<Int>, frameTimes: List<Duration>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): KeyFrameType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard

The total duration of this animation

Link copied to clipboard
Link copied to clipboard

The order of each frame should be played based on the indices of frames.

Link copied to clipboard

All the key frames to animate

Link copied to clipboard
Link copied to clipboard

The amount of time spent displaying each frame.

Link copied to clipboard
val id: Long
Link copied to clipboard