CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 340: | Line 340: | ||
var canvae = document.getElementsByTagName('canvas')[0]; | var canvae = document.getElementsByTagName('canvas')[0]; | ||
var ctx = canvae.getContext('2d'); | var ctx = canvae.getContext('2d'); | ||
− | ctx. | + | ctx.canvas.width = window.innerWidth; |
− | + | ctx.canvas.height = window.innerHeight; | |
void(canvae.style.position = 'absolute'); | void(canvae.style.position = 'absolute'); |
Revision as of 11:19, 19 September 2017