1 개요[ | ]
- HTML5 캔버스 getContext()
JavaScript
Copy
var canvas = document.getElementById("MyCanvas");
var ctx = canvas.getContext("webgl", { antialias: false, depth: false });
JavaScript
Copy
var canvas = document.getElementById("MyCanvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "blue";
ctx.fillRect(0, 0, canvas.width, canvas.height);
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.