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

by myg019 forked from 赤から緑へのグラデーション (diff: 8)
lineを使った赤から緑へのグラデーション
@author shmdmoto
♥0 | Line 19 | Modified 2010-10-11 16:31:20 | MIT License
play

ActionScript3 source code

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

// forked from shmdmoto's 赤から緑へのグラデーション
// forked from shmdmoto's 赤から緑へのグラデーション
package 
{
    import flash.accessibility.Accessibility;
    import frocessing.display.F5MovieClip2D;
    /**
     * lineを使った赤から緑へのグラデーション
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var r:int 
            noStroke();
            background(128);
            colorMode(RGB, 255); 
               for( r = 465; r >= 1 ; r++ ) {
                fill(255 - 255 * r / 465, 0,0255*x/465,0);
                line(x, 0, x, 465);
            }
        }
    }
}