Coder Social home page Coder Social logo

akarras / torcurve-rs Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9 KB

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: MIT License

Rust 100.00%

torcurve-rs's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.