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

forked from: 正方形の大きさ,色,回転を連続して変化

10個の正方形を大きさと色を変化させて表示
@author shmdmoto
/**
 * Copyright argon ( http://wonderfl.net/user/argon )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/yt5s
 */

// forked from shmdmoto's 正方形の大きさ,色,回転を連続して変化
package 
{
    import flash.display.AVM1Movie;
    import frocessing.display.F5MovieClip2D;
    /**
     * 10個の正方形を大きさと色を変化させて表示
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            /*var i:int, j:int;
            rectMode(CENTER);
            colorMode(HSB, 360,100,100,100);
            noFill();
            // 原点をキャンバスの中央に移動
            translate(465/2, 465/2);
            for( i = 0 ; i < 40 ; i++ ) {
                stroke( i * 360 / 40, 100, 100 );
                rotate( radians(135.0 / 40.0));
                rect(0, 0, 100+i*5, 100+i*5);
            }*/
            
            rectMode(CENTER);
            noFill();
            translate(stage.stageWidth/2,stage.stageHeight/2);
            for(var i:int=0; i<100; i++){
                stroke(0,0,0);
                rect(0,0,10*i,10*i);
            }

        }
    }
}