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

#335 in Algorithms

Download history 8153/week @ 2024-10-18 7770/week @ 2024-10-25 9144/week @ 2024-11-01 9374/week @ 2024-11-08 10545/week @ 2024-11-15 9113/week @ 2024-11-22 8814/week @ 2024-11-29 8486/week @ 2024-12-06 7449/week @ 2024-12-13 4317/week @ 2024-12-20 4697/week @ 2024-12-27 6531/week @ 2025-01-03 7671/week @ 2025-01-10 6983/week @ 2025-01-17 9222/week @ 2025-01-24 6084/week @ 2025-01-31

31,288 downloads per month
Used in 14 crates (8 directly)

MIT license

28KB
713 lines

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

Dependencies

~210KB