ezy 0.1.1

Easy to use tweening library
Documentation
  • Coverage
  • 33.33%
    2 out of 6 items documented1 out of 1 items with examples
  • Size
  • Source code size: 7.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.98 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
  • ten3roberts/ezy
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ten3roberts

ezy

Ezy

Rust eazy to use tweening library

Tweens are created separate from instantiation, which fixes the jump at the start if the tween start does not match the current value.

The trait Lerp describes how a value is interpolated.

If feature glam is enabled, Lerp is available for Vec and Quat (using Slerp)

Example

use std::time::Duration;
use ezy::*;
let mut val = 0.0;

// Go to `1.0` under 2 seconds
let tween = Tween::new(1.0, Duration::from_secs(2))

let mut anim = tween.start(val);

// Update tween
anim.progress(&mut val, Duration::from_millis(200))

License: MIT