Javatpoint Logo
Javatpoint Logo

JavaFX Light.Point Effect

In this lighting effect, the light source is given a certain position in the 3D space. As the name suggests, the light source is situated at a certain point and the nodes are seamed to be lightened from that particular source. The class javafx.scene.effect.Light.Point represents this light source. We need to instantiate this class in order to generate the appropriate lighting on the node.

Properties

The properties of the class along with their setter methods are described in the following table.

Property Description Setter Methods
X It is a double type property. It represents the X coordinate of the Light source. setX(Double value)
Y It is a double type property. It represents the Y Coordinate of the light source. setY(Double value)
Z It is a double type property. It represents the Z coordinate of the light source. setZ(Double value)

Constructors

The class contains two constructors

  1. public Light.Point() : Creates the new instance with the default parameters.
  2. Public Light.Point(double x, double y, double z, Color color) : Creates the new instance with the specified 3D coordinates and light color

Example:


JavaFX Light.Point Effect




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA