diff --git a/ti/static/ti/cv.js b/ti/static/ti/cv.js index b44cd981c950bf7dd6d7d7263dfa8db8b75b9aa2..7678510a5306d17cbf123c4bc764bab280cd3eb5 100644 --- a/ti/static/ti/cv.js +++ b/ti/static/ti/cv.js @@ -35,9 +35,6 @@ switch(event.type){ case "mousedown": - ctx.fillStyle = 'red'; // 채우기 색 지정 - ctx.globalAlpha = "1.0"; // 채우기 투명도 설정 - ctx.fillRect(0,0,500,500); initDraw(event); break; case "touchstart": @@ -72,6 +69,10 @@ pos.X = coors.X; pos.Y = coors.Y; ctx.moveTo(pos.X, pos.Y); + + ctx.fillStyle = 'red'; // 채우기 색 지정 + ctx.globalAlpha = "1.0"; // 채우기 투명도 설정 + ctx.fillRect(0,0,500,500); } function draw(event){