aboutsummaryrefslogtreecommitdiff
path: root/src/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.rs')
-rw-r--r--src/animation.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/animation.rs b/src/animation.rs
index 430e3516..e2b9dc39 100644
--- a/src/animation.rs
+++ b/src/animation.rs
@@ -46,4 +46,8 @@ impl Animation {
let x = (passed / total).clamp(0., 1.);
EaseOutCubic.y(x) * (self.to - self.from) + self.from
}
+
+ pub fn to(&self) -> f64 {
+ self.to
+ }
}