Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <canvas id="myCanvas" width="200" height="100" >
- </canvas>
- <script>
- var c=document.getElementById("myCanvas");
- var ctx=c.getContext("2d");
- ctx.beginPath();
- ctx.arc(95,50,40,2.5*Math.PI,1.5*Math.PI);
- ctx.fillStyle="blue";
- ctx.fill();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement