赤十字
赤十字
赤十字
/**
* Copyright skuri ( http://wonderfl.net/user/skuri )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/s4wD
*/
// forked from lenonsun's 赤十字
// 赤十字
package
{
import frocessing.display.F5MovieClip2D;
/**
* 赤十字
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
drawGridGuide();
// endShape(CLOSE)で閉じる
fill(255,0,0);
beginShape();
vertex(200,150);
vertex(200, 50);
vertex(300, 50);
vertex(300,150);
vertex(400,150);
vertex(400,250);
vertex(300,250);
vertex(300,350);
vertex(200,350);
vertex(200,250);
vertex(100,250);
vertex(100,150);
endShape(CLOSE);
}
// 以下は,位置をわかり安くする説明のため
// 処理なので無視してください.
public function drawGridGuide() : void
{
var x : int;
var y : int;
stroke(192,192,192);
for( x = 0 ; x < 465 ; x += 50 )
line( x, 0, x, 465);
for( y = 0 ; y < 465 ; y += 50 )
line( 0, y, 465, y);
stroke(0,0,0);
}
}
}