#easing #animation #tween

no-std easer

Tiny library imlementing Robert Penner's easing functions

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

#457 in Algorithms

Download history 1065/week @ 2023-11-20 1298/week @ 2023-11-27 1530/week @ 2023-12-04 1794/week @ 2023-12-11 2691/week @ 2023-12-18 622/week @ 2023-12-25 1716/week @ 2024-01-01 1150/week @ 2024-01-08 2277/week @ 2024-01-15 1476/week @ 2024-01-22 3458/week @ 2024-01-29 2137/week @ 2024-02-05 2735/week @ 2024-02-12 1057/week @ 2024-02-19 2289/week @ 2024-02-26 2084/week @ 2024-03-04

8,202 downloads per month
Used in 5 crates

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