Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>HTML5 Canvas Test</title>
- <script type="text/javascript" src="canvas_game.js"></script>
- <link rel="stylesheet" type="text/css" href="style.css" >
- </head>
- <body>
- <div id="holder">
- <canvas id="game">
- </canvas>
- </div>
- </body>
- </html>
- // JavaScript Document
- var canvas = document.getElementById('game');
- var context = canvas.getContext('2d');
- context.fillRect(20,20,100,100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement