Graphicsによるプログラム
/**
* Copyright _shimizu ( http://wonderfl.net/user/_shimizu )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/couU
*/
package {
import flash.display.Sprite;
[SWF(width=465, heigh=465, backgroundColor=0)]
public class FlashTest extends Sprite {
public function FlashTest() {
graphics.lineStyle(0, 0xffffff, 0.1);
for(var i:int = 0; i < 48; i++)
{
var c:Number = Math.cos( i * Math.PI / 24);
var s:Number = Math.sin(i * Math.PI / 24);
graphics.beginFill(0xff2020, 0.1);
graphics.moveTo(232 + 200*c - 13*s, 232 + 200*s + 13*c);
graphics.lineTo(232 + 200*c + 13*s, 232 + 200*s - 13*c);
graphics.lineTo(232 - 200*c + 13*s, 232 - 200*s - 13*c);
graphics.lineTo(232 - 200*c + 13*s, 232 - 200*s + 13*c);
graphics.endFill();
}
}
}
}