자바로 움직이는 새그리기
본 자료는 2페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
해당 자료는 2페이지 까지만 미리보기를 제공합니다.
2페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

자바로 움직이는 새그리기에 대한 보고서 자료입니다.

본문내용

urveTo(45,225,10,229,15,424);
path16.moveTo(22,447);
path16.curveTo(145,411,152,231,95,188);
path16.moveTo(339,181); //몸통
path16.quadTo(333,170,325,160);
path16.moveTo(337,179);
path16.curveTo(368,218,280,560,108,368);
g2.setPaint(new Color(55,17,18));
g2.draw(path16);
GeneralPath path17 = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
path17.moveTo(305,437); //오른쪽 발
path17.lineTo(293,418);
path17.lineTo(325,422);
path17.lineTo(305,401);
path17.lineTo(334,402);
path17.curveTo(258,353,229,429,305,437);
path17.closePath();
g2.setPaint(new Color(246,180,31));
g2.fill(path17);
GeneralPath path18 = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
path18.moveTo(115,437); //왼쪽 발
path18.curveTo(124,375,237,393,151,459);
path18.lineTo(163,429);
path18.lineTo(128,444);
path18.lineTo(142,420);
path18.closePath();
g2.setPaint(new Color(246,180,31));
g2.fill(path18);
Ellipse2D circle1 = new Ellipse2D.Double(150,80,60,60); //눈 그리기 그리기 시작
g2.setPaint(Color.white);
g2.fill(circle1);
Ellipse2D circle2 = new Ellipse2D.Double(240,80,60,60);
g2.setPaint(Color.white);
g2.fill(circle2);
Ellipse2D circle3 = new Ellipse2D.Double(240+i,100,30,30);
g2.setPaint(Color.black);
g2.fill(circle3);
Ellipse2D circle4 = new Ellipse2D.Double(150+i,100,30,30);
g2.setPaint(Color.black);
g2.fill(circle4);
Ellipse2D circle5 = new Ellipse2D.Double(500,10,600,600); //달 그리기 시작
g2.setPaint(new Color(255,255,26));
g2.fill(circle5);
Ellipse2D circle6 = new Ellipse2D.Double(650,10,600,600); //달 그리기 시작
g2.setPaint(new Color(10,2,159));
g2.fill(circle6); }
public static void main(String[] args){
Frame frm = new Frame("앉아 있는 부엉이"); // 프레임 생성
Owl2 win = new Owl2(); // 객체생성
frm.add(win); // 프레임에 추가
frm.resize(800,600); //프레임 크기 :1000*1000(화소)
frm.show(); //프레임 표시
} }
{수행결과}
올빼미 눈의 이동 전
올빼미 눈의 이동 중
올빼미 눈의 이동 후
  • 가격1,500
  • 페이지수8페이지
  • 등록일2010.12.02
  • 저작시기2010.12
  • 파일형식한글(hwp)
  • 자료번호#641419
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니