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

1

parent 3129b61b
No related branches found
No related tags found
No related merge requests found
......@@ -119,17 +119,15 @@
image.src = "{% static 'ti/drawpic.png' %}";
image.onload = function(){
ctx.drawImage(image,0,0);
ctx.fillStyle = 'white'; // 채우기 색 지정
ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
ctx.fillRect(0,0,500,500);
}
}
</script>
<script type="text/javascript">
function erase(){
var canvas, ctx;
canvas = document.getElementById("canvas");
ctx = canvas.getContext("2d");
var canvas1, ctx;
canvas1 = document.getElementById("canvas");
ctx = canvas1.getContext("2d");
ctx.fillStyle = 'white'; // 채우기 색 지정
ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
ctx.fillRect(0,0,500,500);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment