Skip to main content

Module animation

Module animation 

Source
Expand description

Keyframe animation system for time-varying filter parameters.

The animation system is built in layers:

  1. Lerp — trait for component-wise linear interpolation (#351)
  2. Easing — six easing functions: Hold, Linear, EaseIn, EaseOut, EaseInOut, Bezier (#352–#357)
  3. Keyframe<T> — timestamp + value + per-segment easing (#349)
  4. AnimationTrack<T> — sorted collection with value_at(t) (#350)
  5. AnimatedValue<T>Static(T) or Track(AnimationTrack<T>) (#358)
  6. AnimationEntry — registered animation track for a specific filter parameter (#359)

Structs§

AnimationEntry
A registered animation track for a specific filter parameter.
AnimationTrack
A sorted collection of keyframes with interpolated value_at(t) lookup.
Keyframe
A single keyframe in an animation track.

Enums§

AnimatedValue
A value that is either constant or animated over time.
Easing
Easing function applied to a keyframe interval.

Traits§

Lerp
A value that supports linear component-wise interpolation.