代码片段:functiondraw(){vari;ctx.clearRect(0,0,c.width,c.height);for(i=0;ic.height)lines[i].y=0-lines[i].height;}re