基本図形の描画2④

by N.YUUKI forked from 閉じた図形の描画属性の設定 (diff: 29)
領域の描画属性
♥0 | Line 33 | Modified 2012-05-14 23:46:49 | MIT License
play

ActionScript3 source code

/**
 * 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/q1Ee
 */

// forked from shmdmoto's 閉じた図形の描画属性の設定
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 円の輪郭・塗りの設定:
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // 1st Paint Order
            strokeWeight(5);
            stroke(0,100,150);
            ellipse(100,100,90,90);
            
            stroke(0,0,0);
            strokeWeight(10);
            fill(100,100,0);
            ellipse(100,200,90,90);                     
            
            strokeWeight(20);
            stroke(255,0,0);
            fill(0, 255, 0);
            ellipse(100,300,90,90);
            
            stroke(0,0,255);
            strokeWeight(30);
            noFill();
            ellipse(100,350,90,90); 
            
            //2nd Paint Order
            stroke(0,0,0);       //stroke initialized
            strokeWeight(0);          //strokeWeight initialized
            fill(0,10,200);
            rect(200,100,50,100);
            
            fill(235,235,235);
            rect(250,100,50,100);
            
            fill(0,200,10);
            rect(300,100,50,100);
            
                  
            
            
        }
    }
}