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

Class Animation

src/animation/mod.rs:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use std::time::Duration;
2
3pub struct Animation {
4 duration: Duration,
5 easing: EasingFunction,
6 start_value: f32,
7 end_value: f32,
8 current_value: f32,
9 progress: f32,
10}
11
12#[derive(Clone, Copy)]
13pub enum EasingFunction {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected