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

#342 in Algorithms

Download history 7050/week @ 2024-12-15 4146/week @ 2024-12-22 4932/week @ 2024-12-29 6434/week @ 2025-01-05 7856/week @ 2025-01-12 7694/week @ 2025-01-19 8565/week @ 2025-01-26 8138/week @ 2025-02-02 9839/week @ 2025-02-09 8220/week @ 2025-02-16 12538/week @ 2025-02-23 11146/week @ 2025-03-02 10292/week @ 2025-03-09 10650/week @ 2025-03-16 10274/week @ 2025-03-23 11939/week @ 2025-03-30

43,727 downloads per month
Used in 16 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

~205KB