import java.awt.*
import groovy.swing.j2d.swf.*
// groovy 1.6.0, JDK6 update12
def gr = new SWFRenderer()
gr.renderToFile("sample1042a.swf", 200, 200){
polygon( points: [100,0, 0,198, 198,198],
fill: new Color(0xbb, 0xdd, 0xff, 0xff),
borderColor: new Color(0x11, 0x33, 0x77, 0xff) )
}
出力SWF(sample1042a.swf)

動作環境
Groovy1.6.0, JDK1.6 Update12
関連項目
groovyでポリゴンを描画する
No comments:
Post a Comment