Simulates percolation shown in a 3b1b Some2 video
Sometimes it may not stop.Stop it if it does so after filling the screen.
Press space to rerender.The threshold is based on your mouse x.(so the phase changing point is around the center of the stage)

I don't get it.

its called somehing like a uniform bernouli distribution?or smthing?i forgot a lot from that video

Ah. Somehow I never learned fluid mechanics.

Oh ok(my post is completely unrelated to fliud dynamics?

Bernouli's contributions to mathematics were pretty much all motivated by trying to work out the behavior of fluids (i.e., liquids and gases).