#animation #graphics #independent #framework #time #prelude #end

yanked animus

Framework independent lightweight rust animation library

2 unstable releases

0.2.0 Jun 25, 2023
0.1.0 May 18, 2023

#33 in #independent

MIT license

8KB
74 lines

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

Dependencies

~170KB