flash on 2010-1-21
♥0 |
Line 19 |
Modified 2010-01-21 19:15:32 |
MIT License
archived:2017-03-30 05:52:17
ActionScript3 source code
/**
* Copyright _wonder ( http://wonderfl.net/user/_wonder )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/58pR
*/
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();
}
}
}
}