代码片段: varcanvas=document.getElementById('canvas'),  ctx=canvas.getContext('2d'),  mouseX=0,mouseY=-100,  width=window.innerWidth,height=window.innerHeight,  isMouseMove=false; varTAU=2*Math.PI; vargenerates=0; varattempts=300; varmainCirlce={