5 unstable releases
Uses old Rust 2015
0.3.0 | Aug 30, 2022 |
---|---|
0.2.1 | Jun 2, 2018 |
0.2.0 | May 22, 2017 |
0.1.1 | May 27, 2016 |
0.1.0 | Apr 26, 2016 |
#326 in Algorithms
32,104 downloads per month
Used in 13 crates
(7 directly)
28KB
713 lines
rust-easing
Tiny Rust library implementing Robert Penner's easing functions.
Usage
Add this to your Cargo.toml
[dependencies]
easer = "0.2.1"
Add this to top of your code file
extern crate easer
Example
use easer::functions::*;
let mut y: [f64; 100] = [0.0; 100];
for i in 0..100 {
y[i] = i as f64;
}
println!("Before {:?}", &y[..]);
y.iter_mut().map(|a| *a = Back::ease_in(*a, 0.0, 100.0, 100.0)).count();
println!("After {:?}", &y[..]);
Dependencies
~210KB