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

by WinField95 forked from 赤から緑へのグラデーション (diff: 3)
赤から緑へのグラデーション

lineを使った赤から緑へのグラデーション
@author shmdmoto
♥0 | Line 15 | Modified 2011-08-07 19:46:29 | MIT License
play

ActionScript3 source code

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

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