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 lenonsun ( http://wonderfl.net/user/lenonsun )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/3GXS
 */

// 正方形の大きさ,色,回転を連続して変化
package 
{
    import flash.display.AVM1Movie;
    import frocessing.display.F5MovieClip2D;
    /**
     * 20個の正方形を大きさと色を変化させて表示
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var i:int, j:int;
            rectMode(CORNER);
            colorMode(HSB, 360,100,100,100);
            noStroke();
            // 原点をキャンバスの中央に移動
            translate(465/2, 300);
            for( i = 0 ; i <= 20 ; i++ ) {
                fill( i * 330 / 20, 100, 100, 30 );
                rect(0, 0, 100+i*5, 100+i*5);
                rotate( radians(225.0 / 20.0));
            }
        }
    }
}