// ************** 03_01 **************

// *********************** (01) PhysicalPoint ********************************

// *********************** sample1(aboutPhysicalPoint) ***********************

//var buttonHeight = 35; //上部のボタンの高さ

//var fontSize = 24;     //ボタンに表示される文字の大きさ

var pt = new PhysicalPoint(100, 100);

function setup(){

        

}

function loop(){

        if(curYubiTouched){

                pt.setKasokudo(((curYubiX-75) - pt.x)*20, ((curYubiY-75) - pt.y)*20); //2023.04.20 スマホ対応

        }

        pbCtx.clearRect(0, 0, screenWidth, screenHeight);

        pbCtx.beginPath();

        pbCtx.fillStyle = 'rgb(0, 0, 255)';        //塗りの色を、青

        pbCtx.arc(pt.x, pt.y, 40, 0, Math.PI*2, true);

        pbCtx.fill();

        //ボタンの描画

        //pbCtx.lineWidth = 1;

        //pbCtx.textAlign = "center";

        //pbCtx.font = fontSize+"px 'Times New Roman'";

        //pbCtx.fillStyle = "black";

        //pbCtx.beginPath();

        //pbCtx.rect(0, 0, screenWidth, buttonHeight);

        //pbCtx.fill();

        //pbCtx.fillStyle = "white";

        //pbCtx.fillText("3-1 下記キャンバス内を、指でタッチしてください",

                //screenWidth/2, buttonHeight/2+fontSize/3);

}

function onPressed(n){

        

}

function onMove(n){

        

}

function onReleased(n){

        

}