Skip to main content

Module animation

Module animation 

Source
Expand description

Clock-free easing and value interpolation.

Structs§

Constant
An unbounded constant signal.
Delay
A delayed animation produced by FiniteAnimation::delay.
FollowPath
Finite path motion sampled by normalized arc length.
Interval
A half-open interval [start, start + duration) on a timeline.
Keyframes
A nonempty track starting at zero, with absolute destinations and relative holds.
Map
Value mapping produced by Signal::map.
Noise
Infinite deterministic multi-octave noise animation in minus one to one.
NoiseBuilder
Unvalidated noise configuration; NoiseBuilder::build reports invalid values.
Oscillator
Infinite stateless periodic scalar animation.
OscillatorBuilder
Unvalidated oscillator configuration; OscillatorBuilder::build reports invalid values.
PathSample
One arc-length path sample in local geometry coordinates.
PingPong
A finite forward/backward cycle produced by FiniteAnimation::ping_pong.
Repeat
A finite repetition produced by FiniteAnimation::repeat.
Reverse
A reversed finite animation produced by FiniteAnimation::reverse.
Speed
A time-scaled animation produced by FiniteAnimation::speed.
Spring
A finite physical spring between arbitrary interpolatable values.
SpringBuilder
Unvalidated spring configuration; SpringBuilder::build reports invalid parameters.
Then
A finite sequence produced by FiniteAnimation::then.
Tween
A finite endpoint-to-endpoint interpolation with double-precision progress.
Zip
Parallel sampling produced by Signal::zip.

Enums§

Easing
A normalized double-precision easing curve, independent of clip duration.
Extrapolate
Behavior outside a mapping’s input interval.
Waveform
Periodic waveform evaluated in turns.

Traits§

FiniteAnimation
A Signal with a nonnegative, stable duration.
Interpolate
Values that can interpolate between endpoints. Progress may overshoot 0.0..=1.0. Implement this trait to sample custom values with Tween and Keyframes. Progress and geometry use double precision. f32 values retain their own arithmetic; colors extrapolate Oklab and clamp only alpha.
Signal
A thread-safe, randomly addressable signal of values over signed local time.

Functions§

piecewise
Interpolates matching samples with finite strictly increasing input knots.
remap
Maps one finite scalar interval; reversed endpoints are supported.
try_piecewise
Interpolates like piecewise, reporting invalid knots, easing and mapping errors.
try_remap
Maps like remap, reporting nonfinite inputs, equal input endpoints and overflow.
try_value_noise
Evaluates value_noise, reporting a nonfinite position.
value_noise
One-dimensional slice of crate::noise::value2_d along y = 0, with its derivative.