Animation

abstract class Animation(var durationNanos: Long, var from: Float, var to: Float) : Cloneable

Animation

An animation used by the PolyUI system.

PolyUI comes with many default animations, which you can use. To give the user some choice, you can also use the Animations.create() to dynamically create them.

check out DrawableOperation for more information on how to use animations with components.

Inheritors

Constructors

Link copied to clipboard
constructor(durationNanos: Long, from: Float, to: Float)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
var from: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var to: Float
Link copied to clipboard

Functions

Link copied to clipboard
abstract override fun clone(): Animation
Link copied to clipboard
fun finishNow()

finish the animation now.

Link copied to clipboard
fun reset()
Link copied to clipboard
fun reverse()
Link copied to clipboard
fun update(deltaTimeNanos: Long): Float