forked from: アステロイド (eye version)
/**
* Copyright makc3d ( http://wonderfl.net/user/makc3d )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/3nTz
*/
// forked from 178ep3's アステロイド (eye version)
package
{
import flash.display.Sprite;
public class stepLine extends Sprite
{
private var step:uint=4;
public function stepLine()
{
var n:uint = stage.stageWidth / step;
for(var i:uint=0; i<n; i++)
{
with(this.graphics)
{
lineStyle(1,0x000000,0.5);
moveTo(0,i*step);
lineTo(i*step,stage.stageHeight);
moveTo(stage.stageWidth,i*step);
lineTo(i*step,0);
if (i % 2 == 0) {
lineStyle(1,0x007FFF,0.5);
drawCircle (
stage.stageWidth * (0.5 + 0.1 * Math.sin (2 * i * Math.PI / n)),
stage.stageHeight * (0.5 + 0.1 * Math.cos (2 * i * Math.PI / n)),
stage.stageWidth / 6
);}
}
}
}
}
}