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

by chiori175
できた。
♥0 | Line 16 | Modified 2011-10-31 16:30:25 | MIT License
play

ActionScript3 source code

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

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