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)
![GfxBuilderで描画した矢印画像](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKTTlq7_MX8DqU1ERhxzoz7ZdLwVUClSVqjlLJwqgQg48hDRVi-xm71OqL94dE11Su4F6lqco7obj32yTQdch7FhziScSkIhyFr666RUbHHqZGIcD6jDFoA1r9KocCsc8Bgrq4/s320/sample1414a.png)
動作環境
Groovy1.6.5, JDK6 Update16
No comments:
Post a Comment