From 1607309669323ef25faaeafccb56854fadb08498 Mon Sep 17 00:00:00 2001 From: Young Guk Kim <kyk1047715@gmail.com> Date: Wed, 25 Apr 2018 06:35:10 +0900 Subject: [PATCH] i --- ti/static/ti/cv.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ti/static/ti/cv.js b/ti/static/ti/cv.js index b44cd98..7678510 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){ -- GitLab