Skip to content

orhanbalci/rust-easing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-easing

Build Status Coverage Status License Crate Version Documentation

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[..]);