Advertisement
Guest User

Untitled

a guest
Feb 9th, 2012
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8" />
  5.   <title>HTML5 Canvas Test</title>
  6.   <script type="text/javascript" src="canvas_game.js"></script>
  7.   <link rel="stylesheet" type="text/css" href="style.css" >
  8. </head>
  9. <body>
  10.   <div id="holder">
  11.     <canvas id="game">
  12.     </canvas>
  13.   </div>
  14. </body>
  15. </html>
  16.  
  17.  
  18.  
  19. // JavaScript Document
  20. var canvas = document.getElementById('game');
  21. var context = canvas.getContext('2d');
  22.  
  23. context.fillRect(20,20,100,100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement