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

赤から青へのグラデーション(円)

Get Adobe Flash player
by lenonsun 29 Oct 2011
/**
 * Copyright lenonsun ( http://wonderfl.net/user/lenonsun )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aTFl
 */

// 赤から青へのグラデーション(円)
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * ellipseを使った赤から青へのグラデーション
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            var r:Number;
            for( r = 464 ; r >= 0 ; r-- ) {
                stroke(255 - 255*r/465, 0, 255*r/465);  
                ellipse(233, 233, r, r);
            }
        }
    }      
}