forked from: 変数を使って直線を描く

by peace96beats forked from 変数を使って直線を描く (diff: 17)
変数を使った直線の描画:
@author shmdmoto
♥0 | Line 23 | Modified 2012-12-08 18:49:42 | 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/fYYd
 */

// forked from shmdmoto's 変数を使って直線を描く
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 変数を使った直線の描画:
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function draw() : void
        {
            
            var x:Number = 50;
            var y:Number = 50;
            var w:Number = 100;
            
            line(x,y,x+w,y);
            y = y + 30;
            w = w + 30;
            line(x,y,x+w,y);
            y = y + 30;
            w = w + 30;
            line(x,y,x+w,y);
            y = y + 30;
            w = w + 30;
            line(x,y,x+w,y);





        }
    }

}