JavaFX - Glow Effect
This sample is just to demonstrate how easy it is to add an effect to a Node.
First we initialize the Glow effect as shown below. The
Now we will instantiate an
Create a
level attribute is bound to glowLevel variable so as to change the glow value at runtime.
var glowLevel = 0.0;
|
ImageView and load the Image as shown below.
var imageView = ImageView {
|
Timeline which will run 5 times with auto-reverse. This Timeline is used for updating the value of glowLevel.
var timeline = Timeline {
|
Click on above image for Applet mode.
The glow effect is added to the candles! Simple?!
Source



not getting any glow effect
Posted by santhosh on March 13, 2009 at 03:52 PM IST #
@santhosh i updated the sample with a better image, hope now its bit more obvious
Posted by Rakesh Menon on March 13, 2009 at 04:33 PM IST #