Expand description
Time-driven value animation: easing curves, a stateful Tween, and a periodic oscillator.
The trig-based easing curves and the oscillator’s sine wave go through retroglyph_core’s
math shim, so they use std’s float intrinsics or libm’s software implementation
depending on which backend feature is on.
Time-driven value animations.
Structs§
- Tween
- A retargetable animation from one
f32value to another over a fixed duration, reshaped by anEasingcurve.
Enums§
- Easing
- A normalized easing curve: reshapes a linear progress fraction (
0.0..=1.0) into an eased one, the same named curves as CSS transitions and https://easings.net.
Functions§
- oscillate
- A continuous sine wave sampled at
elapsed, completing one full cycle everyperiod, mapped from its natural-1.0..=1.0range to0.0..=1.0. - oscillate_
with_ phase oscillate, offset byphasefull cycles.