//pathの初期化 cot.beginPath(); //始点に移動 cot.moveTo(0,0); //線の終点 cot.lineTo(0,1); //線の色 cot.strokeStyle="red"; //CON.lineWidth=3; //描画する cot.stroke();