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

最終課題

最終課題をつくりました
Get Adobe Flash player
by ski181 27 Jan 2012
/**
 * Copyright ski181 ( http://wonderfl.net/user/ski181 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/tdQK
 */

// 最終課題
package 
{
    import flash.display.AVM1Movie;
    import frocessing.display.F5MovieClip2D;
    /**
     * 20個の正方形を大きさと色を変化させて表示
     */
    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 * 500 / 20, 100, 100, 100 );
                rect(0, 0, 400+i*5, 300+i*5);
                rotate( radians(200.0 / 10.0));
            }
        }
    }
}