Skip to content
Snippets Groups Projects
Commit d1842d52 authored by kyk1047715's avatar kyk1047715
Browse files

d

parent 16073096
No related branches found
No related tags found
No related merge requests found
...@@ -70,9 +70,6 @@ ...@@ -70,9 +70,6 @@
pos.Y = coors.Y; pos.Y = coors.Y;
ctx.moveTo(pos.X, pos.Y); ctx.moveTo(pos.X, pos.Y);
ctx.fillStyle = 'red'; // 채우기 색 지정
ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
ctx.fillRect(0,0,500,500);
} }
function draw(event){ function draw(event){
...@@ -81,6 +78,9 @@ ...@@ -81,6 +78,9 @@
pos.X = coors.X; pos.X = coors.X;
pos.Y = coors.Y; pos.Y = coors.Y;
ctx.stroke(); ctx.stroke();
ctx.fillStyle = 'red'; // 채우기 색 지정
ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
ctx.fillRect(0,0,500,500);
} }
function finishDraw(){ function finishDraw(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment