forked from: 長方形の描画

by peace96beats forked from 長方形の描画 (diff: 24)
長方形の描画:
@author shmdmoto
♥0 | Line 25 | Modified 2012-12-08 19:01:24 | MIT License
play

ActionScript3 source code

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

// forked from shmdmoto's 長方形の描画
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 長方形の描画:
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // ここに描画命令を記述します.
            var x:Number = 50;
            var y:Number = 50;
            var w:Number = 100;
            var h:Number = 100;
            rect(x,y,w,h);
            
            x = x + 200;
            rect(x,y,w,h);
            
            x = x - 100;
            y = y + 100;
            rect(x,y,w,h);
            
            x = x - 100
            y = y + 100;
            rect(x,y,w,h);
            
            x = x + 200;
            rect(x,y,w,h);
            
          
         
            
        }
    }
}