Expand description
Animation timing helpers for embedded transitions.
Provides interval remapping, table-based cubic easing samples, and the moook spatial interpolation curve used for stack push/pop motion.
Constants§
- DEFAULT_
DURATION_ MS - Default single-animation duration.
- FRAME_
INTERVAL_ MS - Target frame interval at 30 Hz.
- MOOOK_
DURATION_ MS interpolate_moook_duration()(3 in + 4 out frames).- NORMALIZED_
MAX - Normalized animation progress maximum (16-bit).
- PORT_
HOLE_ DURATION_ MS PORT_HOLE_TRANSITION_DURATION_MS/ROUND_FLIP_ANIMATION_DURATION_MS.- SHUTTER_
DURATION_ MS SHUTTER_TRANSITION_DURATION_MS(2 + 4 frames).
Functions§
- interpolate_
moook - Full moook spatial interpolation (
interpolate_moook). - interpolate_
moook_ soft - Moook with linear middle segment (
interpolate_moook_soft). - moook_
curve - Map linear progress
tin[0, 1]through moook spatial easing to[0, 1](may overshoot). - moook_
duration_ ms - moook_
in_ duration_ ms - moook_
out_ duration_ ms - moook_
soft_ duration_ ms - table_
ease_ in_ sample - Table-based cubic ease-in sample (32-entry lookup).
- timing_
clip - Clip normalized progress to
[0, NORMALIZED_MAX]. - timing_
half_ phase - Two-phase helper: first half / second half of a transition (port-hole, shutter, round window).
- timing_
scaled - Remap normalized progress into
[interval_start, interval_end]. - timing_
shutter_ phase - Shutter timing: first 2/6 then 4/6 of total duration.