특별한딸기이야기
자바 예제 11.3 본문
// 실습 11.3: Taegukgi.java
import java.applet.Applet;
import java.awt.*;
public class Taegukgi2 extends Applet
{
//태극기를 그린다.
public void paint (Graphics page)
{
//태극마크를 그린다.
page.setColor(Color.red);
page.fillArc(120,60,120,120,0,180);
page.setColor(Color.blue);
page.fillArc(120,60,120,120,180,180);
page.setColor(Color.red);
page.fillArc(120,90,60,60,180,180);
page.setColor(Color.blue);
page.fillArc(180,90,60,60,0,180);
//건곤감리를 그린다.
page.setColor(Color.black);
int x1[]={54,64,99,89};
int y1[]={72,79,28,21};
page.fillPolygon(x1,y1,4);
int x2[]={67,77,112,102};
int y2[]={81,88,37,30};
page.fillPolygon(x2,y2,4);
int x3[]={80,90,125,115};
int y3[]={90,97,46,39};
page.fillPolygon(x3,y3,4);
int x4_1[]={235,245,261,251};
int y4_1[]={46,39,63,70};
page.fillPolygon(x4_1,y4_1,4);
int x4_2[]={254,264,280,270};
int y4_2[]={74,67,91,98};
page.fillPolygon(x4_2,y4_2,4);
int x5[]={248,258,293,283};
int y5[]={37,30,81,88};
page.fillPolygon(x5,y5,4);
int x6_1[]={261,271,287,277};
int y6_1[]={28,21,45,52};
page.fillPolygon(x6_1,y6_1,4);
int x6_2[]={280,290,306,296};
int y6_2[]={56,49,73,80};
page.fillPolygon(x6_2,y6_2,4);
int x7[]={54,64,99,89};
int y7[]={168,161,212,219};
page.fillPolygon(x7,y7,4);
int x8_1[]={67,77,93,83};
int y8_1[]={159,152,176,183};
page.fillPolygon(x8_1,y8_1,4);
int x8_2[]={86,96,112,102};
int y8_2[]={186,179,203,210};
page.fillPolygon(x8_2,y8_2,4);
int x9[]={80,90,125,115};
int y9[]={150,143,194,201};
page.fillPolygon(x9,y9,4);
int x10_1[]={235,245,261,251};
int y10_1[]={194,201,177,170};
page.fillPolygon(x10_1,y10_1,4);
int x10_2[]={254,264,280,270};
int y10_2[]={167,174,150,143};
page.fillPolygon(x10_2,y10_2,4);
int x11_1[]={248,258,274,264};
int y11_1[]={203,210,186,179};
page.fillPolygon(x11_1,y11_1,4);
int x11_2[]={267,277,293,283};
int y11_2[]={176,183,159,152};
page.fillPolygon(x11_2,y11_2,4);
int x12_1[]={261,271,287,277};
int y12_1[]={212,219,195,188};
page.fillPolygon(x12_1,y12_1,4);
int x12_2[]={280,290,306,296};
int y12_2[]={185,192,168,161};
page.fillPolygon(x12_2,y12_2,4);
}
}
'딸기 공부방 > 컴퓨터 관련 지식' 카테고리의 다른 글
소프트웨어사업대가의기준_고시전문(0711월) (0) | 2008.03.12 |
---|---|
모바일 플랫폼 역사(2005년까지) (0) | 2008.02.25 |
간단한 이진 계산 (0) | 2008.01.28 |
함수 이용시 변수 및 함수가 보이지 않을 때 (0) | 2008.01.28 |
2008년 정보처리기사 시험일정 (0) | 2008.01.21 |