RandomizeAnimation

fun <T : GameComponentView> RandomizeAnimation(    gameComponentView: T,     visuals: List<Visual>,     toVisual: Visual,     duration: Int = DEFAULT_ANIMATION_DURATION,     speed: Int = DEFAULT_ANIMATION_SPEED)

Creates a RandomizeAnimation for the given GameComponentView.

Parameters

gameComponentView

GameComponentView to animate.

duration

Duration in milliseconds. Default: DEFAULT_ANIMATION_DURATION.

speed

Count of steps. Default: DEFAULT_ANIMATION_SPEED.