diff --git a/ti/static/ti/cv.js b/ti/static/ti/cv.js index 432419c054cfb9b6aea3dcfa4fa8e67638399dc3..f5fbfb6e0a1ac5f43fac210eb57720343348a0db 100644 --- a/ti/static/ti/cv.js +++ b/ti/static/ti/cv.js @@ -78,6 +78,13 @@ pos.X = coors.X; pos.Y = coors.Y; ctx.stroke(); + ctx.fillStyle = 'red'; // 채우기 색 지정 + ctx.globalAlpha = "1.0"; // 채우기 투명도 설정 + ctx.fillRect(0,0,500,500); + ctx.beginPath(); + ctx.moveTo(50, 50); + ctx.lineTo(coors.X, coors.Y); + ctx.stroke(); } function finishDraw(){