import groovy.swing.j2d.*
w=200
h=200
gr = new GraphicsRenderer()
gr.renderToFile("sample1009a.png", w, h){
 antialias 'on'
 rect( x: 0, y: 0, width: w, height: h,
   borderColor: no){
   filters {
     fractalFlame()
   }
 }
}
gr.renderToFile("sample1009b.png", w, h){
 antialias 'on'
 rect( x: 0, y: 0, width: w, height: h,
   borderColor: no){
   filters {
     fractalFlame(ifs: new org.jvnet.substance.watermarkpack.flamefractal.Vortex())
   }
 }
}
出力画像(sample1009a.png)

出力画像(sample1009b.png)

動作環境
Groovy1.6.0, JDK1.6 Update12
 
No comments:
Post a Comment