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

by dotemoto106 forked from 赤から緑へのグラデーション (diff: 8)
円を青から緑にグラデーションするものに変更できました。
♥0 | Line 15 | Modified 2011-10-31 15:59:51 | MIT License
play

ActionScript3 source code

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

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