FlipAnimation

fun <T : GameComponentView> FlipAnimation(    gameComponentView: T,     fromVisual: Visual,     toVisual: Visual,     duration: Int = DEFAULT_ANIMATION_SPEED)

Creates a FlipAnimation for the given GameComponentView.

Parameters

gameComponentView

GameComponentView to animate.

duration

Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.