Table of Contents
The clutter_actor_animate(),
clutter_actor_animate_with_timeline(), and
clutter_actor_animate_with_alpha() functions change the
properties of a single actor over time, using either a standard
ClutterAnimationMode or a simple numeric calculation. In
many cases this is an easier way to implement animation.
These are convenience functions that use the
ClutterAnimation object. You should not need to use
ClutterAnimation directly.
For instance, you could use clutter_actor_animate() to
fade an actor by changing its "opacity" property, while also
moving it to a specified position by changing its "x" and
"y" properties, changing all three property values linearly over 1
second (1000 milliseconds). You should specify the values that the properties
should reach, regardless of their initial values.
clutter_actor_animate (rectangle, CLUTTER_LINEAR, 1000, "opacity", 150, "x", 100, "y", 100, NULL);