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 x = canvas.width / 2;
- var y = canvas.height / 2;
- var radius = 75;
- context.beginPath();
- context.arc(x, y, radius, 0, 2, false);
- context.closePath();
- context.lineWidth = 15;
- context.strokeStyle = "Blue";
- context.fillStyle = 'blue';
- context.fill();
- context.stroke();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement