Example 5: Burn Replace
In this example, the nodes do not move around the screen at all, but an effect is applied to them that
makes them look like an increasingly exposed photograph. This is accomplished using the JavaFX classes
ColorAdjust and GaussianBlur — classes that come with JavaFX that are instances of the class Effect .
The class Effect is an abstract class used to modify the appearance of a Node .
Figure 3-7. Burn replace
The screenshot in Figure 3-7 shows the first node almost completely white. The code in Listing 3-7
shows how to implement this simple, but visually interesting effect.
Listing 3-7. BurnReplace.fx