Skip to main content

recent_motion

Function recent_motion 

Source
fn recent_motion(motion: f32, trigger: u32, moved: bool) -> f32
Expand description

The share of a region’s recent frames that carried more than a small change, motion taking in one more frame: an average over LOW_MOTION_TRIGGERS trigger periods.