Java Reference
In-Depth Information
Figure 2-6. Example 4, Add Blend Mode
The code in Listing 2-8 shows how the classes have been modified to enable the blend effects.
Listing 2-8. Main.fx (partial)
var emitter = Emitter{
blendMode: bind blendMode;
particleRadius: bind radiusSlider.value;
particleSpeed: bind speedSlider.value;
particleDuration: bind (durationSlider.value as Integer);
particleOpacity: bind opacitySlider.value;
particleFadeout: bind fadeCheckbox.selected;
frequency: bind frequencySlider.value * 1s
translateX: 320
translateY: 240
Search WWH ::

Custom Search