Comment: Share simple circle codes in html5, please refer to them
<!DOCTYPE html><head>
<meta charset=utf-8>
<title>HTML5 Drawing Circle</title>
<script src="<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script">"></script</a>>
</head>
<script>
$(document).ready(function(){
var c=document.getElementById("drawbox");
var draw=c.getContext("2d");//Get a reference to the 2d content and call the drawing API</p><p>draw.fillStyle="red";//Color
draw.beginPath();//Draw from a new one
draw.arc(50,50,50,0,Math.PI*2,true);//Center x coordinate|Center y coordinate|diameter|start|PI is pi, Math.PI*2 is the drawing circle|true is the clockwise direction: counterclockwise, 0 is clockwise,
draw.closePath();//End
draw.fill();
})
</script>
</body>
<canvas></canvas>
</body>
</html>
Reproduction diagram