Commit f42510d5 authored by PENTUKAR MOUNIKA's avatar PENTUKAR MOUNIKA

Update index.html

parent 0d7cf48b
Pipeline #8149 passed with stage
in 14 seconds
......@@ -5,14 +5,14 @@
<body>
<canvas id="myCanvas" width="200" height="100"
<canvas id="myCanvas1" width="400" height="200"
style="border:1px solid #d3d3d3;">
Your browser does not support the canvas element.
</canvas>
<script>
var canvas = document.getElementById("myCanvas");
var canvas = document.getElementById("myCanvas1");
var ctx = canvas.getContext("2d");
ctx.moveTo(10,10);
ctx.lineTo(10,90);
......@@ -23,8 +23,13 @@ ctx.moveTo(100,10);
ctx.lineTo(100,90);
ctx.lineTo(140,45);
ctx.lineTo(100,10);
ctx.beginPath();
ctx.arc(95,50,40,0,2*Math.PI);
ctx.moveTo(155,10);
ctx.lineTo(155,90);
ctx.lineTo(280,90);
ctx.lineTo(280,10);
ctx.lineTo(155,10);
ctx.stroke();
</script>
<canvas id="myCanvas" width="200" height="100"
......@@ -52,4 +57,6 @@ ctx.stroke();
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment