Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- </head>
- <body>
- <canvas id="MyCanvas" width="600" height="300"></canvas>
- <script>
- var canvas = document.getElementById('MyCanvas');
- var context = canvas.getContext('2d');
- var radius = 75;
- var start = 4;
- var end = 3;
- var direc = false;
- context.beginPath();
- context.arc(150,150, radius, start, end, direc);
- context.lineWidth = 15;
- context.strokeStyle = "Green";
- context.stroke();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement