| LoopBehavior Enumeration |
Defines the behavior of an animation when it is repeated.
Namespace: DigitalRune.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax Public Enumeration LoopBehavior
public enum class LoopBehavior
Members
| Member name | Value | Description |
---|
| Constant | 0 |
The animation value is constant. The animation repeats the nearest valid animation value
(the start value if time < start time, or the end value of the animation if time >
end time).
|
| Cycle | 1 |
The animation will be repeated if the time value goes past the end of the animation. (Note
that the start and end value of cyclic animations needs to be identical to have smooth
transitions between iterations.)
|
| CycleOffset | 2 |
The animation will be repeated if the time value goes past the end animation. Additionally,
the animation values of the next cycle will be offset by the difference between the end
value and start value of the animation to enable smooth transitions between iterations.
(This behavior can be used to achieve cyclic animations that accumulate the animation values
from one iteration to the next time.)
|
| Oscillate | 3 |
The animation will be automatically reversed and repeated. (This behavior is also known as
'auto-reverse' or 'ping-pong'.)
|
See Also