Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated bin distro to version 0.6

...

Code Block
// turn on antialias
antialias( 'on' )
// create the Groovy star
star( ir: 40, or: 100, cx: 160, cy: 120, borderWidth: 4,
      fill: [118,167,183] as Color ){
   transformations{
      scale( y: 0.6 )
   }
}
// load the swingtime font, get it? Swing
def fontFile = new File("SWINM___.TTF")
font( Font.createFont(Font.TRUETYPE_FONT,fontFile).deriveFont(50.0f) )
// draw the text
text( text: 'Groovy', borderWidth: 4, fill: 'white' ){
   transformations{
       translate( x:80, y:30 )
       scale( y: 1.2 )
    }
}

Download

Distributions

graphicsbuilder-0.5.16
graphicsbuilder-0.6-dependencies

Installing

Drop all jar files into $GROOVY_HOME/lib
Drop the scripts into $GROOVY_HOME/bin

...

Extension

Java Version

Extra libraries

graphicsbuilder-ext-swingx

1.65+

swingx-0.9.2

graphicsbuilder-ext-svg

1.65+

batik-awt-util-1.7, batik1.7 (the whole package)

graphicsbuilder-ext-swf

1.5+

transformSWF

graphicsbuilder-ext-jhlabs

1.7, batik-gui-util-1.7, batik-util-1.7 5+

Filters.jar

graphicsbuilder-ext-jdk6

1.6+

 

graphicsbuilder-ext-animation

1.6+

Timing Framework

graphicsbuilder-ext-jdk6 substance

1.6+  

Substance + Substance extras 5.0dev

Documentation

Tutorials

Children Display
alltrue

...