I am trying to create bubbles simulation. I want a bubble to appear every 1-2 sec. and to burst at the bottom of the canvas.
I have this so far: https://codepen.io/Avivtech/pen/yLbKooV
I can not get to create only few bubbles…
When I move the for loop to the draw function it creates A LOT of bubbles