forked from: 色相変化のグラデーション

by Erinco157 forked from 色相変化のグラデーション (diff: 5)
色相変化のグラデーション

lineを使った色相変化のグラデーション
@author shmdmoto
♥0 | Line 16 | Modified 2012-01-26 16:14:53 | MIT License
play

ActionScript3 source code

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

// forked from lenonsun's 色相変化のグラデーション
// 色相変化のグラデーション
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * lineを使った色相変化のグラデーション
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var x:Number;
            colorMode(RGB, 255);
            for( x = 0 ; x <= 255 ; x++ ) {
                stroke(255 *  x / 255, 255,255);
                line(x, 0, x, 255);
            }
        }
    }
}