Processing: Sketch Swarm

Once again I had some time travelling by airplane (12 hours), time that I could use to try out some random thought I always wanted to test:

’ve done my own small world with only two rules:

  • Every particle should move to its individual random destination
  • If you touch each other, find a new destination.

That’s it.

 

Ah, but just for fun you can click anywhere and all actors will take over the mouse button’s position as their target 😉

For me it look’s like some kind of swarm of insects rather than a swarm full of fish. Therefore I should read some further paper how they differentiate, but I had no Internet connection on airplane 😉

Feel free to check out my Processing-sketch on GitHub. I’ve used Eclipse for easier developing.

Leave a Reply

Your email address will not be published. Required fields are marked *