In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

for文応用①

グラデーション
Get Adobe Flash player
by N.YUUKI 16 May 2012
/**
 * Copyright N.YUUKI ( http://wonderfl.net/user/N.YUUKI )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vbhL
 */

// 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 <= 465 ; x++ ) {
                stroke(0, 255*x/465,255-255*x/465);
                line(x, 0, x, 465);
            }
        }
    }
}