hunar4321 / particle-life

A simple program to simulate artificial life using attraction/reuplsion forces between many particles
MIT License
2.93k stars 291 forks source link

[Feature request] Spawn or destroy pixels based off rules #39

Open Slyke opened 1 year ago

Slyke commented 1 year ago

I'm thinking something like the game of life where more pixels are spawned, or killed based off how many others are around them (and distance). Could be set to say reds die if there's too many blues close or something like that. Or maybe a red has a 50% chance of dying, and that % goes up the closer the nearest blue pixel is.

I haven't thought of the full implementation details, but it might be a good addition.

ker2x commented 1 year ago

someone thought of it for you : https://www.youtube.com/watch?v=q7krkdvXoNw