Top Description Constructors Methods
javafx.scene

public non-sealed Class AmbientLight

extends LightBase
Class Inheritance
Imports
com.sun.javafx.scene.AmbientLightHelper, com.sun.javafx.sg.prism.NGAmbientLight, .NGNode, javafx.scene.paint.Color

A light that illuminates an object from all directions equally regardless of its position and orientation. An AmbientLight adds a constant term to the amount of light reflected by each point on the surface of an object, thereby increasing the brightness of the object uniformly.

AmbientLights are often used to represent the base amount of illumination in a scene. In the real world, light gets reflected off of surfaces, causing areas that are not in direct line-of-sight of the light to be lit (more dimly). Using a dark colored (weak) AmbientLight can achieve the effect of the lighting of those areas.

Since
JavaFX 8.0

Constructor Summary

AccessConstructor and Description
public
AmbientLight()

Creates a new instance of AmbientLight class with a default Color.WHITE light source.

public
AmbientLight(Color
the color of the light source
color
)

Creates a new instance of AmbientLight class using the specified color.

Method Summary

Modifier and TypeMethod and Description
private NGNode
Inherited from javafx.scene.LightBase:
colorPropertygetColorgetExclusionScopegetLightDoublePropertygetScopeisLightOnlightOnPropertyscenesChangedsetColorsetLightOn

Constructor Detail

AmbientLightback to summary
public AmbientLight()

Creates a new instance of AmbientLight class with a default Color.WHITE light source.

AmbientLightback to summary
public AmbientLight(Color color)

Creates a new instance of AmbientLight class using the specified color.

Parameters
color:Color

the color of the light source

Method Detail

doCreatePeerback to summary
private NGNode doCreatePeer()