Hello limit_SKY,
If you look at the code, you'll see that the pressure needle is an Animation Texture Mapper and every x seconds, we setup an animation for the needle. Here is the code related to the pressure needle :
pressureEntropi = (((seconds + minutes + hours) * (seconds + minutes + hours)) % 180) / 360.0f * 2 * PI - PI / 2;
pressure.setupAnimation(AnimationTextureMapper::Z_ROTATION, pressureEntropi, 250, 0, EasingEquations::cubicEaseInOut);
pressure.startAnimation();
And the prototype of setupAnimation() is as follows :
/**
* Sets up the animation for a specific parameter (angle/scale) for the next animation.
* The specific parameter is chosen using the AnimationType enum. AnimationTypes that
* are not setup using this method will keep their value during the animation.
*
* @param parameter The parameter of the TextureMapper that should be animated.
* @param endValue The end value for the parameter.
* @param duration The duration for the animation of the parameter. Specified in
* ticks.
* @param delay The delay before the animation of the parameter starts.
* Specified in ticks.
* @param progressionEquation (Optional) the progression equation for the animation of this
* parameter. Default is EasingEquations::linearEaseNone.
*/
virtual void setupAnimation(AnimationParameter parameter, float endValue, uint16_t duration, uint16_t delay, EasingEquation progressionEquation = &EasingEquations::linearEaseNone);
You can find all this information yourself by going through the code and looking at AnimationTextureMapper.hpp/.cpp
/Alexandre