import groovy.swing.j2d.*
def gr = new GraphicsRenderer()
gr.renderToFile("sample807a.png", 200, 200){
antialias("on")
rhinoShape( x:0, y:10, width:200, height:180,
fill: color("#bbddff"),
borderColor: color("#103080"),
borderWidth: 2
)
}
出力画像(sample807a.png)

動作環境
Groovy1.6.0 Beta2, JDK1.6 Update11
関連項目
groovyで車の形を描画する
groovyで魚型を描画する
groovyでイルカの形を描画する
No comments:
Post a Comment