Skip to main content

Module transition

Module transition 

Source

Structs§

TransitionOptions
The per-type knobs a transition may read, bundled.

Functions§

apply_transition
Composite two RGBA frames during a transition. progress goes from 0.0 (fully frame_a) to 1.0 (fully frame_b).
camera_pan_transition
Camera pan transition: composited background + sliding foreground children. bg_a/bg_b are the outgoing/incoming backgrounds, fg_a/fg_b are children-only (transparent). fg_a slides out by (-dxt, -dyt), fg_b slides in from (dx*(1-t), dy*(1-t)).