JavaFX Light.Spot Effect
This effect lighten the node by a spot light source. The spot light source is the one whose light attenuates in all the directions. The intensity of the light source depends upon the distance between the light source and the node. The class javafx.scene.effect.Light.Spot represents this effect. We just need to instantiate this class to generate the appropriate light on the node.
The properties of the class along with the setter methods are described in the following table.
The class contains two constructors