0

I have made a Google Bouncing Balls animation with Google scripts, but my canvas isn't fullscreen, I tried all the solution, but they doesn't solved the problem.

Here is my TEMPLATE

<canvas id="myCanvas"></canvas>

I tried this:

* { margin:0; padding:0; }

html, body { width:100%; height:100%; }

#myCanvas { display:block; }

Sorry for my English, Thanks)

Egor Gunko
  • 11
  • 4
  • Don't use CSS to resize your canvas -- that will distort your drawings. Instead set the canvas element's `.width=window.innerWidth` & `.height=window.innerHeight`. – markE May 24 '16 at 17:13
  • @markE unfoturnatelly, as You can see nothing changed [TEMPLATE](http://codepen.io/EgorGunko/pen/YqmydJ) – Egor Gunko May 24 '16 at 18:40

0 Answers0