In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Graphicsによるプログラム

Get Adobe Flash player
by _shimizu 01 Jan 2010
    Embed
/**
 * 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();
        			}

        			            
        }
    }
}