It is a study of autonomous agents based on the Chapter 6 of the excellent book "Nature of Code" by Daniel Shiffman.
Applying few simple mathematical rules to the group of "agents" can result in behaviours that look surprisingly natural.
Seek mouse:
Flee mouse:
Separation:
Alignment:
Cohesion:
Flow field:
Show flow field: