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

#326 in Algorithms

Download history 6022/week @ 2024-07-22 6827/week @ 2024-07-29 4918/week @ 2024-08-05 5445/week @ 2024-08-12 5720/week @ 2024-08-19 7336/week @ 2024-08-26 6543/week @ 2024-09-02 6041/week @ 2024-09-09 6099/week @ 2024-09-16 5972/week @ 2024-09-23 6614/week @ 2024-09-30 5719/week @ 2024-10-07 6152/week @ 2024-10-14 8367/week @ 2024-10-21 8328/week @ 2024-10-28 8948/week @ 2024-11-04

32,104 downloads per month
Used in 13 crates (7 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