Skip to content

parameterized curve formula for generating lots of different curve shapes useful for easing, etc. function that @torcado194 made and posted on Twitter, and I stole, and made in Rust

License

Notifications You must be signed in to change notification settings

akarras/torcurve-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torcurve-rs

docs crates downloads issues license

A reusable implementation of toracdo's generalized, parameterized curve formula for generating lots of different curve shapes useful for easing, etc.

Zero dependencies, and exposes a single function.

Authorship

Note, I'm not the original creator of the formula. I just wanted a Rust implementation and figured I should share.

Usage

Add torcurve-rs = 0.1 to your dependencies

use torcurve_rs::torcurve;
fn run_code() {
    for i in 0..=10 {
         println!("curve {}", torcurve(i as f64 * 0.1, 3.0, 0.0, 0.0));
    }
}

Resources

About

parameterized curve formula for generating lots of different curve shapes useful for easing, etc. function that @torcado194 made and posted on Twitter, and I stole, and made in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages