SHARE
TWEET

Latihan GroovyFX 1

stevennathaniel Apr 26th, 2016 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top