Track

class Track(val name: String, var range: ClosedRange<Double>, var easing: TimingFunction = TimingFunction.LINEAR, val apply: (Double) -> Unit? = null, val current: () -> Double? = null)(source)

A track of a Timeline: name, the keyframes of a value in range, interpolated with easing between them, and apply, which sets the value, like a property it is bound to

Constructors

Link copied to clipboard
constructor(name: String, range: ClosedRange<Double>, easing: TimingFunction = TimingFunction.LINEAR, apply: (Double) -> Unit? = null, current: () -> Double? = null)

Properties

Link copied to clipboard
val apply: (Double) -> Unit?
Link copied to clipboard
val current: () -> Double?
Link copied to clipboard
Link copied to clipboard

the keyframes, in the order of their times

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueAt(time: Double): Double?

the value at time: that of the keyframes around it, interpolated; null without keyframes