openrndr / org.openrndr.animatable / AnimationKey

AnimationKey

class AnimationKey (source)

Animation key class

Author
Edwin Jakobs

Types

AnimationMode

enum class AnimationMode

AnimationState

enum class AnimationState

Constructors

<init>

Animation key class

AnimationKey(variable: String, target: Double, duration: Long, start: Long)

Properties

animationMode

var animationMode: AnimationMode

animationState

var animationState: AnimationState

completionCallbacks

returns all completion callbacks for the animation

var completionCallbacks: MutableList<(Animatable) -> Unit>

duration

val duration: Long

durationSeconds

val durationSeconds: Double

easing

sets the easing mode for the animation

var easing: Easer

from

var from: Double

message

var message: Any?

stage

var stage: String?

start

var start: Long

target

val target: Double

variable

val variable: String

Functions

addCompletionCallback

adds a completion callback that is called when the animation ends

fun addCompletionCallback(callback: (Animatable) -> Unit): Unit

play

plays the animation

fun play(from: Double): Unit

stop

stops the animation

fun stop(): Unit