ofxTweeny is a wrapper of Tweeny for openFrameworks.
git clone --recursive https://github.com/RyoYumo/ofxTweeny.git
void ofApp::update() {
ofxTweeny::Tweener::update();
}
Simple example
float value = 0.0;
void ofApp::keyPressed(int key) {
float from = value;
float to = ofRandomf();
int duration = 1000; // ms
ofxTweeny::Tweener::add(&value, from, to, duration);
}
Customize animation curve
float value = 0.0;
void ofApp::keyPressed(int key) {
float from = value;
float to = ofRandomf();
int duration = 1000; // ms
ofxTweeny::Tweener::add(&value, from, to, duration, ofxTweeny::easeOutCirc);
}