MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / with_easing

Method with_easing

src/animation/mod.rs:32–35  ·  view source on GitHub ↗
(mut self, easing: EasingFunction)

Source from the content-addressed store, hash-verified

30 }
31
32 pub fn with_easing(mut self, easing: EasingFunction) -> Self {
33 self.easing = easing;
34 self
35 }
36
37 pub fn update(&mut self, delta_time: Duration) -> f32 {
38 self.progress += delta_time.as_secs_f32() / self.duration.as_secs_f32();

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected