Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.getClass().classLoader.rootLoader.addURL(new URL("file:~/ProyekGroovy/Latihan1/groovyfx-8.0.0.jar"))
- import static groovyx.javafx.GroovyFX.start
- start {
- stage(title: 'Groovy Hello World', visible: true) {
- scene(fill: BLACK, width: 500, height: 250) {
- hbox(padding: 60) {
- text(text: 'Groovy', font: '80pt sanserif') {
- fill linearGradient(endX: 0, stops: [PALEGREEN, SEAGREEN])
- }
- text(text: 'FX', font: '80pt sanserif') {
- fill linearGradient(endX: 0, stops: [CYAN, DODGERBLUE])
- effect dropShadow(color: DODGERBLUE, radius: 25, spread: 0.25)
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement