import java.awt.*
import groovy.swing.j2d.swf.*
def gr = new SWFRenderer()
gr.renderToFile("sample1049a.swf", 200, 200){
cubicCurve( x1: 40, y1:200, ctrlx1:0, ctrly1:50,
ctrlx2:200, ctrly2: 0, x2:160, y2:200,
borderColor: new Color(0x11, 0x33, 0x77, 0xff) )
}
出力SWF(sample1049a.swf)
動作環境
groovy 1.6.0, JDK6 update12
No comments:
Post a Comment