Difference between revisions of "Team:Greece/Collaborations"

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.textAlign = "center";
+
  ctx.canvas.width  = window.innerWidth;
canvae.textAlign = 'center';
+
  ctx.canvas.height = window.innerHeight;
  
 
void(canvae.style.position = 'absolute');
 
void(canvae.style.position = 'absolute');

Revision as of 11:19, 19 September 2017