Package-level declarations

Animator core types and lifecycle management. M2Animator represents a single hardware-synchronized animation channel (position, size, color, matrix, etc.) that is lazily created in firmware when started. M2AnimationsChain enables sequencing and parallel composition of multiple animators.

Types

Link copied to clipboard

Receives lifecycle events from an M2Animator.

Link copied to clipboard
Link copied to clipboard
sealed class M2Animator(drawable: M2Drawable, type: M2AnimatorType, root: M2DrawableList<M2Drawable>? = null, repeat: M2AnimatorRepeat? = null, onBeforeCreate: (canvas: IM2Canvas) -> Unit = {})

Animator object used by drawables to animate specific channels over time.

Link copied to clipboard

Controls the repeat behavior of an M2Animator after it reaches its target value.

Link copied to clipboard

Identifies the drawable property channel that an M2Animator drives.

Link copied to clipboard
object M2Motion

The arithmetic behind an accelerating animator.

Link copied to clipboard
data class M2QuadParams(val delta: Float, val ddelta: Float, val limit: Float, val frames: Float, val selfStopping: Boolean = true)

One accelerating move, in animator units.