Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: Node
Wraps JavaFX LightBase, the abstract base class for 3D light sources (AmbientLight and PointLight). Holds the color of the light and a scope list of nodes the light affects (empty scope means the light affects every node in the scene). LightBase extends Node. It has no constructor; use AmbientLight or PointLight.
setColor (object ColorObj)
Sets the color of the light.
ColorObj is a Color wrapper.this objectgetColor ()
Returns the color of the light.
A Color wrapper.setLightOn (bool Enabled)
Sets the light's enabled state. Disabled lights contribute no illumination.
Enabled is a bool.this objectisLightOn ()
Returns whether the light is on.
A bool with the state.addScope (object NodeObj)
Adds a node to the light's scope. When the scope list is non-empty, only listed nodes are illuminated by this light.
NodeObj is a Node wrapper to add.this objectcolorProperty ()
Returns the property that holds the light color.
An ObjectProperty AJO holding the Color.lightOnProperty ()
Returns the property that holds the lightOn flag.
A BooleanProperty AJO.getScope ()
Returns the live ObservableList of nodes that this light affects. When the list is empty the light affects every node in the scene.
An ObservableList AJO of Node elements.getExclusionScope ()
Returns the live ObservableList of nodes that are excluded from this light's illumination.
An ObservableList AJO of Node elements.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.