62,614
社区成员
发帖
与我相关
我的任务
分享
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.paint.Color;
Stage {
title: "Application title"
width: 700
height: 600
scene: Scene {
content: Text {
font : Font { size : 46 }
x: 10, y: 200
content: "Application content"
fill: LinearGradient {
startX : 0.0
startY : 0.0
endX : 0.0
endY : 1.0
stops: [
Stop {
color : Color.BISQUE
offset: 0.0
},
Stop {
color : Color.BLUE
offset: 1.0
}
]
}
}
}
}