Effect: Animated Image Sequences
Not all animations in an application are dynamic. It is often desirable to create the animations in a dedicated tool and then play the animation in the app. JavaFX has good support for video, for example, but sometimes video is too heavy of a solution. Or perhaps you want to have an animation sequence with partial transparency or be able to specify exactly which frames of the animation are visible when. In these cases, animating a sequence of image files can produce desirable results, and as a bonus, most animation software supports exporting image sequences directly.
This chapter discusses strategies for creating images and displaying the sequence as an animation in a JavaFX scene. By displaying one ...