Java Reference
In-Depth Information
Figure 3-5. Flip replace two-thirds complete
Figure 3-4 shows the animation where the first node is rotated about a third of the way. Figure 3-5
shows the replacement about two-thirds through the animation. The code in Listing 3-5 shows how this
effect is implemented.
Listing 3-5. FlipReplace.fx
package org.lj.jfxe.chapter3.example3;
import javafx.scene.Node;
import javafx.scene.Group;
import javafx.util.Sequences;
import javafx.scene.effect.*;
import javafx.animation.*;
import javafx.util.Math;
* @author lucasjordan
Search WWH ::

Custom Search