Commit 4a176a4f authored by PENTUKAR MOUNIKA's avatar PENTUKAR MOUNIKA

Update index.html

parent 175dacb7
Pipeline #8052 passed with stage
in 18 seconds
......@@ -5,7 +5,33 @@
<body>
<canvas id="tutorial" width="150" height="150"></canvas>
<canvas id="myCanvas" width="200" height="100"
style="border:1px solid #d3d3d3;">
Your browser does not support the canvas element.
</canvas>
<script>
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.moveTo(10,10);
ctx.lineTo(10,90);
ctx.lineTo(90,90);
ctx.lineTo(90,10);
ctx.lineTo(10,10);
ctx.moveTo(100,10);
ctx.lineTo(100,90);
ctx.lineTo(140,45);
ctx.lineTo(100,10);
ctx.stroke();
</script>
</body>
......
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