ニコニコテレビちゃんを描いてみた
ニコニコテレビちゃんを描いてみた
// ニコニコテレビちゃんを描いてみた
package{
import flash.display.Sprite;
public class DrawNicotvchan1 extends Sprite {
public function DrawNicotvchan1() {
// 左足を描く
var s5:Sprite = new Sprite();
s5.graphics.lineStyle(4, 0x000000);
s5.graphics.beginFill(0xffffff);
s5.graphics.moveTo(190, 150);
s5.graphics.lineTo(185, 160);
s5.graphics.lineTo(170, 150);
s5.graphics.endFill();
addChild(s5);
// 右足を描く
var s6:Sprite = new Sprite();
s6.graphics.lineStyle(4, 0x000000);
s6.graphics.beginFill(0xffffff);
s6.graphics.moveTo(250, 150);
s6.graphics.lineTo(235, 160);
s6.graphics.lineTo(230, 150);
s6.graphics.endFill();
addChild(s6);
// アンテナを描く
var s7:Sprite = new Sprite();
s7.graphics.lineStyle(4, 0x000000);
s7.graphics.moveTo(180, 40);
s7.graphics.lineTo(210, 60);
s7.graphics.lineTo(240, 40);
addChild(s7);
// 外側四角を描く
var s2:Sprite = new Sprite();
s2.graphics.lineStyle(6, 0x000000);
s2.graphics.beginFill(0xffffff);
s2.graphics.drawRect(0, 0, 120, 90);
s2.graphics.endFill();
s2.x = 150;
s2.y = 60;
addChild(s2);
// 内側四角を描く
var s3:Sprite = new Sprite();
s3.graphics.lineStyle(4, 0x000000);
s3.graphics.beginFill(0xffffff);
s3.graphics.drawRect(0, 0, 100, 70);
s3.graphics.endFill();
s3.x = 160;
s3.y = 70;
addChild(s3);
// 左目を描く
var s1:Sprite = new Sprite();
s1.graphics.beginFill(0x000000);
s1.graphics.drawCircle(0, 0, 5);
s1.x = 180;
s1.y = 100;
addChild(s1);
// 右目を描く
var s4:Sprite = new Sprite();
s4.graphics.beginFill(0x000000);
s4.graphics.drawCircle(0, 0, 5);
s4.x = 240;
s4.y = 90;
addChild(s4);
// 口を描く
var s8:Sprite = new Sprite();
s8.graphics.lineStyle(1, 0x000000);
s8.graphics.beginFill(0x000000);
s8.graphics.moveTo(210, 120);
s8.graphics.lineTo(200, 130);
s8.graphics.lineTo(215, 130);
s8.graphics.endFill();
addChild(s8);
}
}
}