ミラクルマター

by aaaaaz025
♥0 | Line 49 | Modified 2010-09-30 10:35:49 | MIT License
play

ActionScript3 source code

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

// forked from bluecomet021's forked from: モンスターのサンプル
// forked from shmdmoto's モンスターのサンプル
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * Monsterのひな型
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // 以下にMonsterを描く命令を記述します
            //左翼
            stroke(200,0,0);
            strokeWeight(35);
            line(300,150,400,75);
            stroke(200,0,0);
            strokeWeight(35);
            line(300,175,400,175);
            stroke(200,0,0);
            strokeWeight(35);
            line(300,200,400,275);
            //右翼
            stroke(200,0,0);
            strokeWeight(35);
            line(100,150,0,75);
            stroke(200,0,0);
            strokeWeight(35);
            line(100,175,0,175);
            stroke(200,0,0);
            strokeWeight(35);
            line(100,200,0,275);                         
            //左翼付け根          
            stroke(0,0,0);
            strokeWeight(8);                        
            rect(270,130,50,100);
            //右翼付け根
            stroke(0,0,0);
            strokeWeight(8);
            rect(80,130,50,100);
            //棘
            line(200,350,250,280);
            line(200,350,150,280);
            //体
            strokeWeight(8)
            ellipse(200,200,200,200);
            stroke(0,0,0);
            //赤目
            noFill();
            fill(200,0,0);
            ellipse(200,200,125,60);
            //白目
            noStroke();
            fill(255,255,255);
            ellipse(200,200,50,50);
            //輪
            fill(255,255,0);
            ellipse(200,100,200,50);
            //輪の中
            fill(255,255,255);
            ellipse(200,100,150,25);                       
        }
    }
}