Skip to content

Instantly share code, notes, and snippets.

@fc4soda
Created May 3, 2018 06:10
Show Gist options
  • Save fc4soda/6a4f0728061d559324f544e076e08257 to your computer and use it in GitHub Desktop.
Save fc4soda/6a4f0728061d559324f544e076e08257 to your computer and use it in GitHub Desktop.
css canvas draw ark
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.lineWidth=5;
ctx.beginPath();
ctx.arc(100, 75, 50, -0.5*Math.PI, (2*0.83-0.5) * Math.PI);
ctx.strokeStyle="#F9C91E";
ctx.stroke();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment