← Back

ofxAnimatable

github.com/armadillu/ofxAnimatable · @armadillu
OF 0.12 Animation

Set of classes that help setup very simple animations, with curves, repeat modes and barebones scheduling.

121 44 Last commit 2y ago Created 14y ago

Forks

Forks pushed to more recently than armadillu/ofxAnimatable itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

moebiussurfing/ofxAnimatable by @moebiussurfing · ★ 1 · pushed 7mo ago

README

ofxAnimatable



Build Status Build status

Set up very simple animations, with curves, repeat modes and basic scheduling.

Let's see how to make a value animate indefinitely between two values, with an EaseInEaseOut curve.

ofxAnimatableFloat anim;

setup(){ //set initial position anim.reset( 0.0f );

//set repeating style anim.setRepeatType(LOOP_BACK_AND_FORTH);

//set animation curve anim.setCurve(EASE_IN_EASE_OUT);

//start the animation, go from current val to the specified val anim.animateTo( 1.0f );

}

update(){ //update with App timebase (60 fps) pointAnim.update( 1.0f/60.0f ); }

Includes basic tweening curves, and customizable ones found here and here; also includes Google's Swift Out curve.

ofxAnimatable screenshot

see big

LICENSE

ofxAnimatable is made available under the MIT license.

Get this addon

HTTPS
SSH