Skip to content

Instantly share code, notes, and snippets.

@deanriverson
Created March 4, 2012 18:09
Show Gist options
  • Save deanriverson/1974206 to your computer and use it in GitHub Desktop.
Save deanriverson/1974206 to your computer and use it in GitHub Desktop.
A basic GroovyFX 0.2 Hello World program
import static groovyx.javafx.GroovyFX.start
start {
stage(title: "GroovyFX Hello World", visible: true) {
scene(fill: black, width: 530, height: 300) {
hbox(padding: 80) {
text(text: "Groovy", style: "-fx-font-size: 80pt") {
fill linearGradient(endX: 0, stops: [palegreen, seagreen])
}
text(text: "FX", style: "-fx-font-size: 80pt") {
fill linearGradient(endX: 0, stops: [cyan, dodgerblue])
effect dropShadow(color: dodgerblue, radius: 25, spread: 0.25)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment