グラデーション課題1:赤から青

by ZOT027 forked from 赤から緑へのグラデーション (diff: 7)
♥0 | Line 15 | Modified 2010-10-11 16:03:36 | MIT License
play

ActionScript3 source code

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

// forked from shmdmoto's 赤から緑へのグラデーション
// forked from shmdmoto'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 = 232 ; x++ ) {
                stroke(255 - 255*x/465,0, 255*x/465);
                ellipse(0, x, 232, x);
            }
        }
    }
}