javafx.scene.effect.Light.Distant
This node takes the attributes from the javafx.scene.effect.Light.Distant class, see javafx.scene.effect.Light.Distant
There is no content for this node.
Defines a Distant light for the Lighting effect.
GroovyFX.start({
def sg = new SceneGraphBuilder(it);
sg.stage(
title: "Blend Effect Example",
x: 100, y: 100, width: 500, height:300,
visible: true,
style: "decorated",
) {
scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
text(x: 20, y: 120, content: "Light Effect", font: "bold 90pt", fill: red) {
lighting(surfaceScale: 5.0) {
distant(azimuth: -135)
bumpInput() {
dropShadow()
}
contentInput() {
glow()
}
}
}
}
}
});
|