25#include "animatedValue.h"
45 using CurveFn = std::function<float (
float)>;
92 [[deprecated (
"Use ctor with CurveType as last argument")]]
A class that can generate different parametric easing curves.
Definition: parametric.h:39
void SetCurve(CurveFn curve)
Set a new curve function for the generator.
Definition: parametric.cpp:273
float generateNextValue(float progress) override
generate the value according to progress in time.
Definition: parametric.cpp:278
Definition: animatedValue.h:194
int duration
duration of the event in ms.
Definition: animatedValue.h:237