The APIs under javafx.scene.effect.light.Light should be supported on Mobile
Sample code :
-------------------------------------------------------- Code Begins --------------------------------------------------------
import javafx.scene.*;
import javafx.scene.effect.*;
import javafx.scene.effect.light.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.stage.Stage;
var gr = Group {
var t:Text;
content: [
Rectangle {
width: bind t.layoutBounds.width + 30
height: bind t.layoutBounds.height + 20
fill: Color.BLACK
},
t = Text {
effect: Lighting {
light: DistantLight {
azimuth: -135
elevation: 30
}
surfaceScale: 5
}
textOrigin: TextOrigin.TOP
x: 10
y: 10
content: "Light"
fill: Color.RED
font: Font.font(null, FontWeight.BOLD, 50);
}
]
}
Stage {
title: "MyApp"
scene: Scene {
fill: Color.BLACK
width: 240
height: 320
content: [
gr
]
}
}
-------------------------------------------------------- Code Ends --------------------------------------------------------