interpolated
Generic, smooth value interpolation and easing functions for Rust.
This crate provides the Interpolated<T> type for animating values of any
arithmetic type over time using customizable easing functions.
Usage
Add to your Cargo.toml:
[]
= "0.1.0"
Import and use in code:
use ;
use Duration;
let mut value = new;
value.set_duration;
value.transition = linear;
value.set;
// In an update loop:
let current = value.value;
println!;