Package javafx.scene

Class AmbientLight

All Implemented Interfaces:
Styleable, EventTarget

public class AmbientLight
extends LightBase
Defines an ambient light source object. Ambient light is a light source that seems to come from all directions.
Since:
JavaFX 8.0
  • Constructor Details

    • AmbientLight

      public AmbientLight()
      Creates a new instance of AmbientLight class with a default Color.WHITE light source.
    • AmbientLight

      public AmbientLight​(Color color)
      Creates a new instance of AmbientLight class using the specified color.
      Parameters:
      color - the color of the light source