easer

Crates.ioeaser
lib.rseaser
version0.3.0
sourcesrc
created_at2016-04-26 17:57:05.818699
updated_at2022-08-30 06:10:35.376471
descriptionTiny library imlementing Robert Penner's easing functions
homepagehttps://github.com/orhanbalci
repositoryhttps://github.com/orhanbalci/rust-easing.git
max_upload_size
id4868
size32,256
Orhan Balci (orhanbalci)

documentation

http://orhanbalci.github.io/rust-easing

README

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[..]);
Commit count: 99

cargo fmt