O'Reilly logo

JavaFX™ Special Effects: Taking Java™ RIA to the Extreme with Animation, Multimedia, and Game Elements by Lucas L. Jordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required