Posted By

muzafarova on 01/24/11


Tagged

html canvas html5


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

abbyabigale
SpinZ
erikgeerling


Canvas Element


 / Published in: HTML
 

URL: http://www.html5canvastutorials.com/tutorials/html5-canvas-element/

  1.  
  2. function init() {
  3. var canvas=document.getElementById("myCanvas");
  4. var c=canvas.getContext("2d");
  5.  
  6. // do stuff here
  7. }
  8.  
  9. </head>
  10. <body onload="init()">
  11. <canvas id="myCanvas" width="576" height="300"></canvas>
  12. </body>
  13. </html>

Report this snippet  

You need to login to post a comment.