forked from: 円の描画
forked from 円の描画 (diff: 30)
変数を使った円の描画: @author shmdmoto
ActionScript3 source code
/**
* Copyright shinw ( http://wonderfl.net/user/shinw )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/r5kE
*/
// forked from shmdmoto's 円の描画
package
{
import frocessing.display.F5MovieClip2D;
/**
* 変数を使った円の描画:
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:Number = 80;
var y:Number = 100;
var h:Number = 100;
// ここに描画命令を記述します.
ellipse(x,y,h,h);
y = y + 100;
x = x + 100;
h = h + 50;
/*
ellipse(x,y,h,h);
y = y + 100;
x = x + 100;
h = h + 50;
ellipse(x,y,h,h);
y = y + 100;
x = x + 100;
h = h + 50;
ellipse(x,y,h,h);
*/
ellipse(x,y,h,h);
//y = y + 100;
x = x + 300;
ellipse(x,y,h,h);
y = y + 100;
//x = x + 100;
}
}
}
