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

波紋

配列と二重ループの組み合わせのサンプル
/**
 * Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/Ap2N
 */

package
{ 
    import frocessing.display.F5MovieClip2D;
    /**
     * 波紋
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var i:int, n:int;
            var x:Number, y:Number;
            var circSize : Array = [30, 70, 150, 230, 260, 270 ];
            for( n = 0 ; n < 10 ; n++) {
                x = random(450);
                y = random(450)                
                for( i = 0 ; i < 6 ; i++ ) {
                    noFill();
                    stroke(128);
                    ellipse( x, y, circSize[i], circSize[i] );
                }
            }
        }
    }
}