グラデーションの練習4

by aaaaaz025 forked from グラデーションの練習3 (diff: 4)
♥0 | Line 17 | Modified 2010-10-16 14:38:45 | MIT License
play

ActionScript3 source code

/**
 * Copyright aaaaaz025 ( http://wonderfl.net/user/aaaaaz025 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aX5o
 */

// forked from aaaaaz025's グラデーションの練習3
// forked from aaaaaz025's グラデーションの練習2
// forked from aaaaaz025's グラデーションの練習1
// forked from shmdmoto's 赤から緑へのグラデーション
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * lineを使った赤から緑へのグラデーション
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var r:int;
            noFill();
            for(r=0;r<=465;r++) {
                stroke(0,255*r/465,255-255*r/465);
                rectMode(CENTER);
                rect(465/2,465/2,r,r);
            }
        }
    }
}