bezier_easing 0.1.1

This is a rust port of Gaëtan Renaudeau's bezier-easing from https://github.com/gre/bezier-easing
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 7.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.46 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hlhr202/bezier-easing-rs
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hlhr202

Bezier Easing for Rust

This is a rust port of gre/bezier-easing.

Bezier easing provides a way to create custom easing functions (ease-in, ease-out, ease-in-out...) for use in animations.

By providing the coordinates of the bezier curve's control points, you can create your own easing functions that follow the curve you've defined.

Usage

use bezier_easing::bezier_easing;

let ease = bezier_easing(0.25, 0.1, 0.25, 1.0);
assert_eq!(ease(0.0), 0.0);
assert_eq!(ease(0.5), 0.3125);
assert_eq!(ease(1.0), 1.0);

License

MIT

Acknowledgements