Java Reference
In-Depth Information
Figure 5-7. The Windup Overshoot interpolator
As you can see, this interpolator is designed to animate nodes beyond the bounds of the start and
end. This gives a certain amount of enthusiasm to an animation and works well with popup menus and
other animated UI controls.
Step Interpolator
While most things in the world move with smooth curves, there are human-made things that may
appear to move instantly from one place to another. For example, the second hand on some analog
clocks appears to jump from second to second. Of course, the hand simply moves very quickly from
second to second, but in order to capture that tick-tick-tick feeling, an interpolator that jumps from
value to value can be used.
The code in Listing 5-9 creates an interpolator that takes another interpolator and breaks it up into a
number of steps.
Search WWH ::




Custom Search