animus

Crates.ioanimus
lib.rsanimus
version0.2.0
sourcesrc
created_at2023-05-18 23:23:56.554053
updated_at2023-06-25 14:22:54.738578
descriptionFramework independent lightweight rust animation library
homepagehttps://github.com/Noxmore/animus
repositoryhttps://github.com/Noxmore/animus
max_upload_size
id868397
size8,004
noxmore (Noxmore)

documentation

https://docs.rs/animus

README

Animus

Framework independent lightweight rust animation library.

Usage

  • Add it to your project with the terminal: cargo add animus.
  • Create an instance of the Animus struct somewhere in your code. (e.g. before your main loop, or in your App struct) - example:
let animus = Animus::default();
  • At the end of your update/frame function, call anim.gc(); to cleanup unused animations.
  • Now from your update/frame function, you can define and use a new animation:
use animus::prelude::*;

let animated_value = animus.anim("animation_name", 50., -50, 5., ease_in_out(3.));
                                   animation_id   start  end time   animator
Commit count: 6

cargo fmt