Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Qcanvas = function() {
- var canvas = document.createElement("canvas");
- canvas.style.position = "absolute";
- canvas.style.top = "0px";
- canvas.style.left = "0px";
- canvas.width = window.innerWidth;
- canvas.height = window.innerHeight;
- document.body.appendChild(canvas);
- return {canvas: canvas, ctx: canvas.getContext("2d")};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement