The property animation system is a robust framework that allows you
to animate almost anything. You can define an animation to change any
object property over time, regardless of whether it draws to the screen
or not. A property animation changes a property's (a field in an object)
value over a specified length of time. To animate something, you
specify the object property that you want to animate, such as an
object's position on the screen, how long you want to animate it for,
and what values you want to animate between.
The property animation system lets you define the following characteristics of an animation:
The property animation system lets you define the following characteristics of an animation:
- Duration: You can specify the duration of an animation. The default length is 300 ms.
- Time interpolation: You can specify how the values for the property are calculated as a function of the animation's current elapsed time.
- Repeat count and behavior: You can specify whether or not to have an animation repeat when it reaches the end of a duration and how many times to repeat the animation. You can also specify whether you want the animation to play back in reverse. Setting it to reverse plays the animation forwards then backwards repeatedly, until the number of repeats is reached.
- Animator sets: You can group animations into logical sets that play together or sequentially or after specified delays.
- Frame refresh delay: You can specify how often to refresh frames of your animation. The default is set to refresh every 10 ms, but the speed in which your application can refresh frames is ultimately dependent on how busy the system is overall and how fast the system can service the underlying timer.
No comments:
Post a Comment