import griffon.builder.gfx.render.*
def gr = new GfxRenderer()
gr.renderToFile("sample1425a.png", 200, 200){
antialias("on")
star( cx:100, cy:100, count:5, ir:40, or:90,
borderColor: color("#d0b070"),
borderWidth: 2
){
gradientPaint( x1: 0, y1: 0, x2: 0, y2: 200,
color1: color("#ffffe0"), color2: color("#f0d090"))
}
}
出力画像(sample1425a.png)
動作環境
Groovy1.6.5, JDK6 Update16
No comments:
Post a Comment