You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project contains demo code to showcase some of the Tweeny features, and
some extra code to support them.
All code lives inside the src/ folder.
The easings demo
It outputs in the console all easing curves that come bundled in Tweeny. It
waits for you to press the RETURN before showing the next curve.
The loop demo
Shows how different types of loops can be implemented via callbacks. It also
showcases some of the callback types you can use (functos, functions, lambdas,
etc).
The multitype demo
Showcases how can you interpolate hetergoneous values in a single tween.
Getting started
To build the demo code you should first clone this repository and its
submodules. It can be done with a single command:
If you decide to download an archive of this repository (as opposed of
cloning it), be sure to also download tweeny and put it inside the
libs/tweeny folder.
Linux, MacOS and Unix
Create a build folder inside the newly cloned repository:
cd tweeny-temos
mkdir build
Execute cmake inside:
cd build
cmake ...
Build the example you want to see:
make easings
The built code will be available under the build/src folder, to execute it:
./src/easings
Windows
Open CMake GUI and select the top level directory of tweeny as source
Select or create a build folder (it can be inside of tweeny)
Select the generator (depending on your compiler/IDE)
Click GENERATE
Open the generated project in your IDE, select the target and run it from there.
Contributing
If you have an idea for a demo, you are welcome to submit a pull request. See
the tweeny repository for instructions on code style.