H5 canvas学习 —案例(一)太极图 <body> <canvas id='myCanvas'></canvas> <script> var myCanvas = document.getElementById("myCanvas"); myCanvas.width = 1000; myCanvas.height = 700; var cvs = myCanvas.getContext("2d"); //画一个整个的圆 cvs.arc(300, 300, 300, 0, 2 * Math.PI