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: 大きさと色が変化する正方形

Get Adobe Flash player
by shinw 23 Jun 2011
    Embed
/**
 * Copyright shinw ( http://wonderfl.net/user/shinw )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/ptrN
 */

// 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();
            for( i = 0 ; i <= 10 ; i++ ) {
                stroke( i * 360 / 10, 100, 100 );
                rect(465/2, 465/2, i*40, i*40);
            }
        }
    }
}