041 -- A System of Particles: (Due Wed Oct 25)

Develop an ecology or composition in which a population of animated forms reacts with attraction and/or repulsion according to at least two force-based influences. These influencing factors might include:


Your population should have at least 10 members. You may, at your option, eliminate the background() command to create an accretive composition; if you do, provide an option that allows a keypress to turn the background back on. See Craig Reynold's work for some possible inspiration. For example code, see the following: One-dimensional spring; Gravity and bouncing; Magnetic attraction & repulsion forces; Particle-particle interactions (collisions). (These examples use Processing V.068; to compile, change loop() to draw()).

Some things to experiment with: Experiment with turning off the background() command in order to make an accretive composition. Up for a challenge? Consider creating a 1-dimensional group of particles connected by springs (as in a simulation of a hair, chain or thread), or a 2D mesh of particles connected by springs (in other words, a fabric simulation), such as this one by Max Kaufmann. For the grand-daddy of spring apps, look at the Soda Constructor by Ed Burton. Also consider DynaDraw, which connects a pen to the cursor by a 2-dimensional spring.

Solutions