色相変化のグラデーション練習1

by sunnyside004 forked from 色相変化のグラデーション (diff: 3)
色相=0,明度=100で彩度を0〜100まで変化するグラデーションを表示するプログラム
♥0 | Line 16 | Modified 2010-10-11 16:10:32 | MIT License
play

ActionScript3 source code

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

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