Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Canvas</title>
- </head>
- <body>
- <canvas id="canvas" width="300" height="300"></canvas>
- <script type="text/javascript">
- var ctx = document.getElementById("canvas").getContext("2d");
- ctx.fillRect(0,0,150,150);
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment