Java Reference
In-Depth Information
Figure 2-2.
Example 1, emitting particles
Listing 2-1.
Emitter.fx
package org.lj.jfxe.chapter2.example1;
import javafx.scene.Group;
import javafx.animation.Timeline;
import javafx.animation.KeyFrame;
public class Emitter extends Group{
//specifies when a new particle should be added to the scene
var emitTimeline = Timeline{
repeatCount: Timeline.INDEFINITE;
keyFrames: KeyFrame{
time: .05*1s