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

#449 in Algorithms

Download history 966/week @ 2024-01-09 2493/week @ 2024-01-16 1685/week @ 2024-01-23 3317/week @ 2024-01-30 2273/week @ 2024-02-06 2328/week @ 2024-02-13 1331/week @ 2024-02-20 2225/week @ 2024-02-27 2241/week @ 2024-03-05 2629/week @ 2024-03-12 1957/week @ 2024-03-19 2916/week @ 2024-03-26 1838/week @ 2024-04-02 3052/week @ 2024-04-09 1972/week @ 2024-04-16 2446/week @ 2024-04-23

9,678 downloads per month
Used in 11 crates (6 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

~220KB