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

by manami forked from 赤から緑へのグラデーション (diff: 4)
lineを使った赤から緑へのグラデーション
@author shmdmoto
♥0 | Line 16 | Modified 2011-03-29 22:18:19 | MIT License
play

ActionScript3 source code

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

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