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

i

parent 9e4485d8
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment