Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.6.1 (with dependencies)
graphicsbuilder-0.6
graphicsbuilder-0.6-dependencies

Installing

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

...

Pre-requisites

GraphicsBuilder 0.6.0 requires Groovy 1.5.0+ and Java 1.6+
Additional extensions have the following requisites

Extension

Java Version

Extra libraries

graphicsbuilder-ext-swingx

1.5+

swingx-0.9.2

graphicsbuilder-ext-svg

1.5+

batik-1.7 (the whole package)

graphicsbuilder-ext-swf

1.5+

transformSWF

graphicsbuilder-ext-jhlabs

1.5+

Filters.jar

graphicsbuilder-ext-jdk6

1.6+

 

graphicsbuilder-ext-animation

1.6+

Timing Framework

graphicsbuilder-ext-substance

1.6+

Substance + Substance extras 5.0dev 0

GraphicsBuilder 0.6.1 requires Groovy 1.6-beta-2

Documentation

Tutorials

Children Display
alltrue

...