body canvas id="myCanvas" width="500" height="500" your browser does not support the canvas tag /canvas script type="text/javascript" var deg = 0; var r = 30; var rl = 100; function drawTaiji() { var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var colorA = "rgb(0, 0, 0)"; var colorB = "red";
复制代码代码如下: !DOCTYPE HTML html body canvas id="myCanvas" width="500" height="500" your browser does not support the canvas tag /canvas script type="text/javascript" var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext("2d"); var angle = 0; var count = 360; var clrA = '#000'; var clrB = 'red';