Feeding Frenzy

ecosystem
Class: Nature of Code

Professor: Daniel Shiffman

A simulation of fish eating insects to illustrate the concept that the rich get richer and the poor get poorer.

When a fish eats it grows and therefore is able to eat even more.
The fish that do not eat, shrink and eventually die.
You can add Fish and Flies by following the instructions on the page.

Documentation/Media

To view this content, you need to install Java from java.com

Written in Java using Processing as a "wrapper" and some libraries created by Daniel Shiffman.
Source code: feedfrenzy4 | Food | ParticleSystem | PatricleSystemFood | Thing

How it was done / more details

  • Fish must eat the butterflies in order to grow and move faster.
  • If a fish does not eat it shrinks.
  • If it shrinks below a certain level it dies.