안드로이드

       

 

class MoveActivity
package com.example.choi.ex07_graphic;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

public class MoveActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(new MyView(this));
    }

    class MyView extends View {
        int width, height; //화면 크기
        int cx,cy; //회전축
        int turnW, turnH; //오뚜기의 회전축
        int sw,sh; //그림자의 크기
        int ang; //현재 각도
        int dir;// 회전 방향
        int limit1, limit2; //좌우의 한계점
        Bitmap imgBack, imgToy, imgShadow;

        public MyView(Context context) {
            super(context);
            //화면 사이즈 계산
            // 여기서 화면 가로 세로 구하는 onSizeChanged 사용하면 안된다.
        // getApplicationContext() : 현재 실행중인 액티비티
            DisplayMetrics disp=getApplicationContext().getResources().getDisplayMetrics();
            width = disp.widthPixels; //화면의 가로길이
            height = disp.heightPixels; //화면의 세로길이
            //중심점
            cx = width / 2;
            cy = height / 2 + 100;
            //원본 배경 이미지
            imgBack= BitmapFactory.decodeResource(
                    context.getResources(), R.drawable.back);
            //뷰의 크기에 맞게 이미지 사이즈를 조절
            imgBack = Bitmap.createScaledBitmap(
                    imgBack,width,height,true);
            //오뚜기 이미지
            imgToy=BitmapFactory.decodeResource(
                    context.getResources(), R.drawable.toy);
            //그림자 이미지
            imgShadow=BitmapFactory.decodeResource(
                    context.getResources(), R.drawable.shadow);
            //오뚜기의 중심점
            turnW = imgToy.getWidth()/2;
            turnH=imgToy.getHeight();
            //그림자의 중심좌표
            sw=imgShadow.getWidth()/2;
            sh=imgShadow.getHeight()/2;
            ang=0; //회전 각도
            dir=0; //회전 방향
        // sendEmptyMessageDelayed( 메시지, 지연시간 )
        // 지연시간 후 메시지가 전달됨( handleMessage method 호출 )
            handler.sendEmptyMessageDelayed(1,10);
        }
        //핸들러 선언
        Handler handler=new Handler(){
            @Override
            public void handleMessage(Message msg) {
                if(msg.what == 1) {
                    invalidate(); //화면 갱신 onDraw()가 호출됨
                    //핸들러를 다시 호출
                    handler.sendEmptyMessageDelayed(1,10);
                }
            }
        };


        //그래픽 처리
        @Override
        protected void onDraw(Canvas canvas) {
            rotateToy();
            //배경이미지
            canvas.drawBitmap(imgBack,0,0,null);
            //그림자
            canvas.drawBitmap(imgShadow,cx-sw,cy-sh,null);
            //캔버스를 회전시킴
            canvas.rotate(ang,cx,cy);
            //오뚜기
            canvas.drawBitmap(imgToy,cx-turnW,cy-turnH,null);
            //캔버스 회전 취소
            canvas.rotate(-ang,cx,cy);
        }

        void rotateToy(){ //오뚜기를 회전시킴
            ang += dir; //각도 증가,감소
            //좌우 한계점에 도달하면

            if(ang <= limit1 || ang >= limit2 ) {
                limit1++; //왼쪽 증가
                limit2--; //오른쪽 감소
                dir = -dir; //회전 방향 바꾸기
                ang += dir; // 각도 변경
            }

            if(limit1 >= -30 && limit1  <= 0 ){
                Log.i("test","rotateToy() -  limit1: "+limit1+" ,limit2: "+limit2 +" ,dir:"+dir+" ,ang:"+ang);
            }

        }

        //터치 이벤트 추가
        @Override
        public boolean onTouchEvent(MotionEvent event) {
        //화면을 터치하면
            if(event.getAction()==MotionEvent.ACTION_DOWN){
                limit1 = -30; //왼쪽 한계
                limit2 = 30; //오른쪽 한계
                if(dir == 0 ){ // dir이 0이면 -1로
                    dir=-1; //왼쪽으로 기울임 처리
                }
                Log.i("test", "터치 이벤트 클릭 처음값 - limit1:"+limit1+",limit2:"+limit2);
            }
            return true;
        }



/*
        //뷰의 사이즈가 변경될 때 호출
        //최초 뷰가 출력될 때, 폰의 가로/세로 방향이 바뀔 때
        @Override
        protected void onSizeChanged(int w, int h, int oldw, int oldh) {
            super.onSizeChanged(w, h, oldw, oldh);

            width=getWidth();
            height=getHeight();
        }
*/


    }
}

 

오뚜기에서 핵심 부분은 rotateToy() 메소드 이다.

ang 가 limt1과 limit2 에서 값을 받아와서

증가값 및 감소값에 따라 방향이 바뀌어

화면을 좌우로 회전시키는 역할을 한다.

     void rotateToy(){ //오뚜기를 회전시킴
            ang += dir; //각도 증가,감소
            //좌우 한계점에 도달하면

            if(ang <= limit1 || ang >= limit2 ) {
                limit1++; //왼쪽 증가
                limit2--; //오른쪽 감소
                dir = -dir; //회전 방향 바꾸기
                ang += dir; // 각도 변경
            }

            if(limit1 >= -30 && limit1  <= 0 ){
                Log.i("test","rotateToy() -  limit1: "+limit1+" ,limit2: "+limit2 +" ,dir:"+dir+" ,ang:"+ang);
            }

        }

 

로그 출력 결과 

02-24 07:52:01.884 19503-19503/com.example.choi.ex07_graphic I/test: 터치 이벤트 클릭 처음값 - limit1:-30,limit2:30
02-24 07:52:01.914 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-1
02-24 07:52:01.931 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-2
02-24 07:52:01.950 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-3
02-24 07:52:01.967 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-4
02-24 07:52:01.984 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-5
02-24 07:52:02.001 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-6
02-24 07:52:02.018 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-7
02-24 07:52:02.036 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-8
02-24 07:52:02.053 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-9
02-24 07:52:02.070 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-10
02-24 07:52:02.085 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-11
02-24 07:52:02.102 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-12
02-24 07:52:02.118 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-13
02-24 07:52:02.135 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-14
02-24 07:52:02.154 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-15
02-24 07:52:02.169 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-16
02-24 07:52:02.186 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-17
02-24 07:52:02.204 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-18
02-24 07:52:02.222 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-19
02-24 07:52:02.238 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-20
02-24 07:52:02.255 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-21
02-24 07:52:02.272 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-22
02-24 07:52:02.290 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-23
02-24 07:52:02.306 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-24
02-24 07:52:02.323 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-25
02-24 07:52:02.340 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-26
02-24 07:52:02.357 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-27
02-24 07:52:02.374 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-28
02-24 07:52:02.391 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -30 ,limit2:30 ,dir:-1 ,ang:-29
02-24 07:52:02.408 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-29
02-24 07:52:02.425 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-28
02-24 07:52:02.442 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-27
02-24 07:52:02.458 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-26
02-24 07:52:02.475 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-25
02-24 07:52:02.492 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-24
02-24 07:52:02.509 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-23
02-24 07:52:02.526 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-22
02-24 07:52:02.543 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-21
02-24 07:52:02.560 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-20
02-24 07:52:02.577 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-19
02-24 07:52:02.594 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-18
02-24 07:52:02.612 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-17
02-24 07:52:02.629 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-16
02-24 07:52:02.646 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-15
02-24 07:52:02.664 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-14
02-24 07:52:02.680 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-13
02-24 07:52:02.697 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-12
02-24 07:52:02.714 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-11
02-24 07:52:02.731 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-10
02-24 07:52:02.748 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-9
02-24 07:52:02.765 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-8
02-24 07:52:02.782 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-7
02-24 07:52:02.799 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-6
02-24 07:52:02.816 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-5
02-24 07:52:02.833 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-4
02-24 07:52:02.850 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-3
02-24 07:52:02.867 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-2
02-24 07:52:02.884 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:-1
02-24 07:52:02.902 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:0
02-24 07:52:02.919 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:1
02-24 07:52:02.936 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:2
02-24 07:52:02.952 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:3
02-24 07:52:02.971 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:4
02-24 07:52:02.987 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:5
02-24 07:52:03.004 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:6
02-24 07:52:03.021 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:7
02-24 07:52:03.038 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:8
02-24 07:52:03.055 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:9
02-24 07:52:03.073 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:10
02-24 07:52:03.090 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:11
02-24 07:52:03.107 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:12
02-24 07:52:03.124 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:13
02-24 07:52:03.141 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:14
02-24 07:52:03.157 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:15
02-24 07:52:03.174 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:16
02-24 07:52:03.191 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:17
02-24 07:52:03.209 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:18
02-24 07:52:03.227 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:19
02-24 07:52:03.245 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:20
02-24 07:52:03.262 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:21
02-24 07:52:03.277 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:22
02-24 07:52:03.294 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:23
02-24 07:52:03.311 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:24
02-24 07:52:03.328 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:25
02-24 07:52:03.345 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:26
02-24 07:52:03.362 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:27
02-24 07:52:03.379 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -29 ,limit2:29 ,dir:1 ,ang:28
02-24 07:52:03.396 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:28
02-24 07:52:03.413 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:27
02-24 07:52:03.430 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:26
02-24 07:52:03.447 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:25
02-24 07:52:03.464 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:24
02-24 07:52:03.481 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:23
02-24 07:52:03.497 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:22
02-24 07:52:03.514 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:21
02-24 07:52:03.531 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:20
02-24 07:52:03.548 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:19
02-24 07:52:03.565 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:18
02-24 07:52:03.582 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:17
02-24 07:52:03.602 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:16
02-24 07:52:03.617 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:15
02-24 07:52:03.633 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:14
02-24 07:52:03.650 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:13
02-24 07:52:03.668 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:12
02-24 07:52:03.685 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:11
02-24 07:52:03.701 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:10
02-24 07:52:03.719 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:9
02-24 07:52:03.736 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:8
02-24 07:52:03.752 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:7
02-24 07:52:03.769 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:6
02-24 07:52:03.786 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:5
02-24 07:52:03.803 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:4
02-24 07:52:03.820 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:3
02-24 07:52:03.837 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:2
02-24 07:52:03.854 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:1
02-24 07:52:03.871 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:0
02-24 07:52:03.888 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-1
02-24 07:52:03.906 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-2
02-24 07:52:03.959 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-3
02-24 07:52:03.975 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-4
02-24 07:52:03.993 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-5
02-24 07:52:04.010 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-6
02-24 07:52:04.027 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-7
02-24 07:52:04.044 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-8
02-24 07:52:04.061 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-9
02-24 07:52:04.078 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-10
02-24 07:52:04.097 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-11
02-24 07:52:04.112 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-12
02-24 07:52:04.130 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-13
02-24 07:52:04.146 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-14
02-24 07:52:04.165 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-15
02-24 07:52:04.182 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-16
02-24 07:52:04.200 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-17
02-24 07:52:04.217 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-18
02-24 07:52:04.234 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-19
02-24 07:52:04.251 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-20
02-24 07:52:04.266 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-21
02-24 07:52:04.284 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-22
02-24 07:52:04.317 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-23
02-24 07:52:04.334 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-24
02-24 07:52:04.352 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-25
02-24 07:52:04.369 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-26
02-24 07:52:04.386 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -28 ,limit2:28 ,dir:-1 ,ang:-27
02-24 07:52:04.403 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-27
02-24 07:52:04.420 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-26
02-24 07:52:04.437 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-25
02-24 07:52:04.454 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-24
02-24 07:52:04.470 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-23
02-24 07:52:04.487 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-22
02-24 07:52:04.503 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-21
02-24 07:52:04.522 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-20
02-24 07:52:04.537 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-19
02-24 07:52:04.554 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-18
02-24 07:52:04.571 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-17
02-24 07:52:04.588 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-16
02-24 07:52:04.607 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-15
02-24 07:52:04.622 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-14
02-24 07:52:04.639 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-13
02-24 07:52:04.656 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-12
02-24 07:52:04.673 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-11
02-24 07:52:04.690 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-10
02-24 07:52:04.707 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-9
02-24 07:52:04.724 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-8
02-24 07:52:04.742 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-7
02-24 07:52:04.759 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-6
02-24 07:52:04.776 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-5
02-24 07:52:04.793 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-4
02-24 07:52:04.810 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-3
02-24 07:52:04.827 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-2
02-24 07:52:04.845 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:-1
02-24 07:52:04.861 19503-19503/com.example.choi.ex07_graphic I/test: rotateToy() -  limit1: -27 ,limit2:27 ,dir:1 ,ang:0

 

-------

생략

 

----

 

 

 

 

 

 

about author

PHRASE

Level 60  머나먼나라

인생은 현인에게는 꿈이며 어리석은 자에게는 게임이다. 부자에게는 희극이고 가난한 자에게는 비극이다. -유태격언

댓글 ( 4)

댓글 남기기

작성