Tweeny

The modern C++ tweening library

Tweeny is an inbetweening library designed for the creation of complex animations for games and other beautiful interactive software. It leverages features of modern C++ to empower developers with an intuitive API for declaring tweenings of any type of value, as long as they support arithmetic operations.

The goal of Tweeny is to provide means to create fluid interpolations when animating position, scale, rotation, frames or other values of screen objects, by setting their values as the tween starting point and then, after each tween step, plugging back the result.

This is a basic example of how Tweeny's API looks like:
auto tween = tweeny::from(0).to(100).during(1000).via(tweeny::easing::circularInOut);
tween.onStep([](int v) { printf("%d\n", v); });
for (int i = 0; i < 1000; i++) tween.step(1);