()
| 121 | |
| 122 | |
| 123 | function animate(){ |
| 124 | ctx.clearRect(0,0,canvas.width,canvas.height); |
| 125 | for(let i=0;i<particleArray.length;i++){ |
| 126 | particleArray[i].draw(); |
| 127 | particleArray[i].update(); |
| 128 | } |
| 129 | |
| 130 | requestAnimationFrame(animate); |
| 131 | } |
| 132 | animate(); |
| 133 |
no test coverage detected