代码片段:varcanvas=document.getElementById("canvas"), ctx=canvas.getContext("2d"), canvasWidth=document.documentElement.clientWidth, canvasHeight=document.documentElement.clientHeight, shapes=[], sizeVariation, iteration=0, animationDirection=1, sizeVariationRange=.15,