Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title> Canvas beaty!!</title>
- <script type="text/javascript">
- var canvas = document.getElementById("exampleCavas");
- var context = canvas.getContext("2d");
- context.moveTo(0, 0);
- context.lineTo(400, 400);
- context.strokeStyle = "#ff0000";
- context.stroke();
- </script>
- </head>
- <body>
- Content of the document......
- <canvas id="exampleCanvas" width="500" height="300">
- oh man, your browser is not supporting canvas
- </canvas>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement