Skip to main content

set_speed

Function set_speed 

Source
pub fn set_speed(scale: f32)
Expand description

Stretch every catalog timeline by scale10.0 slows the 200ms pane tweens to 2s, so a screenshot burst can sample the geometry frame by frame.

Configuration in code, like the rest of bezel: an app that wants this on a setting, or hanging off its own theme, calls this from wherever that lives. It used to read a BEZEL_MOTION_SCALE environment variable, which meant the one knob in the library that no app could reach.

Clamped to 0.01..=100.0; a non-finite scale resets to 1.0 rather than poisoning every duration with a NaN.