forked from: 同じ図形の繰り返し描画:手作業

by mek099 forked from 同じ図形の繰り返し描画:手作業 (diff: 18)
8個の四角形を横一列に並べる
@author shmdmoto
♥0 | Line 27 | Modified 2010-09-27 15:25:00 | MIT License
play

ActionScript3 source code

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

// forked from shmdmoto's 同じ図形の繰り返し描画:手作業
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 8個の四角形を横一列に並べる
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // ここに描画命令を記述します
            var x:Number;
            x = 0;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
            x = x + 50;
            rect(  x,100,40,40);
        }
    }
}