JSFiddle - React, Tailwind, and code Playground

by khushboo097

HTML

<!DOCTYPE HTML>
<html>
  <head>
    <style>
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
  </head>
  <body>
    <canvas id="myCanvas" width="578" height="200"></canvas>
    <script>
      var canvas = document.getElementById('myCanvas');
      var context = canvas.getContext('2d');

      context.beginPath();
      context.arc(100, 100, 50, 0*Math.PI,Math.PI, false);
      context.closePath();
      context.fillStyle = 'red';
      context.fill();
    </script>
  </body>
</html>