Advertisement
stevennathaniel

Latihan GroovyFX 1

Apr 26th, 2016
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.85 KB | None | 0 0
  1. this.getClass().classLoader.rootLoader.addURL(new URL("file:~/ProyekGroovy/Latihan1/groovyfx-8.0.0.jar"))
  2.  
  3.  
  4. import static groovyx.javafx.GroovyFX.start
  5.  
  6. start {
  7.     stage(title: 'Groovy Hello World', visible: true) {
  8.         scene(fill: BLACK, width: 500, height: 250) {
  9.             hbox(padding: 60) {
  10.                
  11.                 text(text: 'Groovy', font: '80pt sanserif') {
  12.                    
  13.                     fill linearGradient(endX: 0, stops: [PALEGREEN, SEAGREEN])
  14.                 }
  15.                
  16.                 text(text: 'FX', font: '80pt sanserif') {
  17.                    
  18.                     fill linearGradient(endX: 0, stops: [CYAN, DODGERBLUE])
  19.                    
  20.                     effect dropShadow(color: DODGERBLUE, radius: 25, spread: 0.25)
  21.                    
  22.                 }
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement