Skip to main content

apply_transition

Function apply_transition 

Source
pub fn apply_transition(
    frame_a: &[u8],
    frame_b: &[u8],
    width: u32,
    height: u32,
    progress: f64,
    transition_type: &TransitionType,
    opts: &TransitionOptions,
) -> Vec<u8> 
Expand description

Composite two RGBA frames during a transition. progress goes from 0.0 (fully frame_a) to 1.0 (fully frame_b).