https://github.com/orhanbalci/rust-easing
Tiny Rust library implementing Robert Penner's easing functions
https://github.com/orhanbalci/rust-easing
easing rust
Last synced: 8 months ago
JSON representation
Tiny Rust library implementing Robert Penner's easing functions
- Host: GitHub
- URL: https://github.com/orhanbalci/rust-easing
- Owner: orhanbalci
- License: mit
- Created: 2016-03-17T07:35:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T06:10:09.000Z (over 3 years ago)
- Last Synced: 2025-06-05T07:35:20.726Z (8 months ago)
- Topics: easing, rust
- Language: Rust
- Homepage: http://orhanbalci.github.io/rust-easing
- Size: 811 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-easing
[](https://travis-ci.org/orhanbalci/rust-easing)
[](https://coveralls.io/github/orhanbalci/rust-easing?branch=master)

[](https://crates.io/crates/easer)
[](https://docs.rs/easer)
Tiny Rust library implementing Robert Penner's easing functions.
# Usage
Add this to your Cargo.toml
``` toml
[dependencies]
easer = "0.2.1"
```
Add this to top of your code file
``` rust
extern crate easer
```
# Example
``` rust
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[..]);
```