CHAPTER 5
Effect: Advanced Interpolators
Animations are pictures that change over time; these changes are composed of transformations and color changes. In either case, the rates at which these changes take place dictate much about the appearance of the animation, and of course, the rates themselves can change over time. Imagine the trivial animation of a rectangle moving from the top of the screen to the bottom. If the box moves down at a constant rate of 2 pixels per second, it would appear to be gently lowering. However, if the box drops 2 pixels the first second, 4 pixels the next second, then 8, 16, and so on, the box would seem to be freely falling. The difference between an object being lowered and an object falling can have a big effect ...
Get JavaFX™ Special Effects: Taking Java™ RIA to the Extreme with Animation, Multimedia, and Game Elements now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.