← Back

ofxRamp

github.com/larsberg/ofxRamp · @larsberg
OF 0.8 Utilities

Templated ramp addon for animating values of any numeric data type with selectable easing curves such as linear, quintic, and sinusoidal.

2 0 Last commit 11y ago Created 11y ago

README

ofxRamp v 0.0.0

a templated ramp addon for openframeworks



Features:

easily create ramps for any data type that has +, -, operators

usage:

ofxRamp<float> exampleRamp; exampleRamp.addValue( -1000, 0, Ramp::Ease::Linear ); exampleRamp.addValue( 100, .5, Ramp::Ease::Quintic::In ); exampleRamp.addValue( 12345, 1, Ramp::Ease::Sinusoidal::InOut ); float sample = exampleRamp.getValue( .3 ); cout << "sample: " << sample << endl; //sample: -340

Get this addon

HTTPS
SSH