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

spiral

Get Adobe Flash player
by naoyes 30 Aug 2009
    Embed
/**
 * Copyright naoyes ( http://wonderfl.net/user/naoyes )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/1wMw
 */

package {

    import flash.display.Sprite;

    [SWF(backgroundColor="#FFFFFF", width=500 ,height=500)]
    
    public class Spiral extends Sprite {

        // constructor
        function Spiral (){
            for (var x:Number = 0; x < Math.PI*2*10; x = x + Math.PI/90) {
                
                this.graphics.lineStyle(1, 0);
                this.graphics.drawCircle(250 - Math.exp(0.13*x) * Math.cos(x) , 250 - Math.exp(0.13*x) * Math.sin(x) , Math.exp(0.1 * x));
            }
           
        }
    }

}