例題 同じ図形の繰り返し描画:手作業3

by bluecomet021 forked from 例題 同じ図形の繰り返し描画:手作業 (diff: 10)
♥0 | Line 27 | Modified 2010-09-28 13:53:57 | MIT License
play

ActionScript3 source code

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

// forked from bluecomet021's 例題 同じ図形の繰り返し描画:手作業
// 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,  x,40,40);
            x =  50;
            rect(  x,  x,40,40);
            x = 100;
            rect(  x,  x,40,40);
            x = 150;
            rect(  x,  x,40,40);
            x = 200;
            rect(  x,  x,40,40);
            x = 250;
            rect(  x,  x,40,40);
            x = 300;
            rect(  x,  x,40,40);
            x = 350;
            rect(  x,  x,40,40);
        }
    }
}