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 05 Aug 2011
/**
 * Copyright lenonsun ( http://wonderfl.net/user/lenonsun )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/yZEP
 */

// 閉じた図形の描画属性の設定
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 円の輪郭・塗りの設定:
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // ここに描画命令を記述します.
            // 初期設定の描画属性
            ellipse(100,100,90,90);
            // 赤での塗りつぶし
            fill(255,0,0);
            ellipse(100,200,90,90);
            // 線なし,緑で
            noStroke();
            fill(0, 255, 0);
            ellipse(100,300,90,90);
            // 青い線,塗りつぶしなし
            stroke(0,0,255);
            noFill();
            ellipse(100,350,90,90); 
        }
    }
}