flash on 2010-11-21
♥0 |
Line 19 |
Modified 2010-11-22 00:06:14 |
MIT License
archived:2017-03-30 05:10:08
ActionScript3 source code
/**
* Copyright yama3 ( http://wonderfl.net/user/yama3 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/gBi1
*/
package {
import flash.display.Sprite;
[SWF(width=465, height=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();
}
}
}
}