import griffon.builder.gfx.render.*
def gr = new GfxRenderer()
gr.renderToFile("sample1414a.png", 200, 200){
antialias("on")
arrow( x: 20, y: 100, width: 100, height: 50,
angle:85, depth:0.5, rise:0.2,
fill: color("#bbddff"),
borderColor: color("#103080"),
borderWidth: 2
)
arrow( x: 100, y: 100, width: 100, height: 50,
angle:115, depth:0.2, rise:0.1,
fill: color("#bbffdd"),
borderColor: color("#108050"),
borderWidth: 2
)
}
出力画像(sample1414a.png)
動作環境
Groovy1.6.5, JDK6 Update16
No comments:
Post a Comment