Types of Animations
| Animation class | Animation Framework | Complex Animations |
In this document
We found out that basically there are two kinds of animations that we and the users tend to use.
- Absolute type animations
- Delta type animations
Absolute animations
Absolute animations are the one in which we provide absolute values to the animation object. For example
This will make the widget move to x=300, y=300 position. If immediately after completion of the animation you try to reapply the same animation to the widget. The widget will not budge because it has already reached the absolute coordinates (300,300). Such values are absolute values.
By default all animations are absolute animations in PyMT
Delta animations
Delta animations are one in which you provide provide delta values for animation.It will use the current state of the widget to apply the delta properties provided. For example
This will make the widget move to x=current_x+ 100, y=current_y+100 position. We use the argument type='delta' to emphasize that the animation is of delta type. Delta animations can be very useful in case you want to repeat the same animation over and over again. We will look into repeating in later topics, it will show the importance of delta animations.
