forked from: 赤から緑へのグラデーション_3

by nan05aur forked from forked from: 赤から緑へのグラデーション_2 (diff: 5)
lineを使った赤から緑へのグラデーション
@author shmdmoto
♥0 | Line 16 | Modified 2011-09-08 21:10:09 | MIT License
play

ActionScript3 source code

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

// forked from nan05aur's forked from: 赤から緑へのグラデーション_2
// forked from nan05aur's forked from: 赤から緑へのグラデーション
// forked from shmdmoto's 赤から緑へのグラデーション
// forked from shmdmoto's 赤から緑へのグラデーション
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * lineを使った赤から緑へのグラデーション
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var x:Number = 0, y:Number = 0;
            ellipseMode(CENTER);
            for( x = 255, y = 255 ; x >= 0 ; x--, y-- ) {
                stroke( 255 - x, 0, x );
                ellipse( 200, 200, x, y );
            }
        }
    }
}

Forked