// WitchHat // Dave Bollinger, Dec 2006 // http://www.davebollinger.com // for Processing 0123 Beta /** Click and drag to rotate.
Press space to reset particles.
Press 's' to shake particles.
*/ ArrayList particles; ArrayList triangles; int nparticles = 100; color parcolor = color(96,48,24); color tricolor = color(64,128,64,64); int trispercone = 12; int ntriangles; float rotx=-0.5f, roty=0.26f; float gravity = 0.1f; float friction = 0.01f; void setup() { size(300,300,P3D); background(255); particles = new ArrayList(); for (int i=0; i