Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script>
- </script>
- </head>
- <body>
- <script>
- var canvasElem = document.getElementById('canvas');
- var ctx = canvasElem.getContext('2d');
- ctx.moveTo(150,150);
- ctx.lineTo(200,200);
- ctx.stroke();
- </script>
- <canvas width="200" height="200" id="canvas">
- </canvas>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement