JavaFX Light.Distant EffectIn this effect, the node is lighten from a distant light source. The distant light source is the one which is kept at some fair distance from the object and the light is attenuated into one direction from the source to the object. In JavaFX, the class javafx.scene.effect.Light.Distant represents the Distant light source. We need to instantiate this class to generate the appropriate light on the node. PropertiesThe class contains two properties described in the following table.
ConstructorsThe class contains two constructors
Example:Next TopicJavaFX Light.Spot Effect |