Four particle types, each with its own size, speed and temperament, locked in a hunt-and-flee cycle.
Red particles are small and fast. They cluster together, hunt violet, and flee light blue.
Light blue particles are larger and slower. They spread out, hunt red, and flee green.
Green particles are mid-sized. They spread out, hunt light blue, and flee both violet and red.
Violet particles are the largest and slowest. They cluster together, hunt green, and flee red.
800 x 600 black space · looping edges · forces reach 100px
Interaction matrix
row acts on column
+ attracts · − repels · 0 ignores
Rules: each type is attracted to some types and repelled by others · the matrix above is the whole ruleset · attraction is stronger when closer, weaker when farther · particles cluster without overlapping
All particles are solid — no two particles of any colour overlap. The space loops around: leaving the top brings you out the bottom, leaving the left brings you out the right (and vice versa). Forces reach 100px, so a hunter can sense its prey across a good stretch of the canvas.