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

by Flagfighter172 forked from 同じ図形の繰り返し描画:手作業 (diff: 14)
♥0 | Line 23 | Modified 2011-10-17 14:57:10 | MIT License
play

ActionScript3 source code

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

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