// Confetti01 // Dave Bollinger // http://www.davebollinger.com // for Processessing 0109 Beta /** Click and drag to spawn confetti.
Press space to toggle clear-screen/overdraw mode.
Press 's' to toggle scale reduction.
Press 't' to toggle texture color / rainbow color.
*/ ArrayList things; boolean bClearScreen = false; boolean bScaleReduce = true; boolean bTextureColor = true; PImage tex; void setup() { size(360,360,P3D); tex = loadImage("lighthouse360.jpg"); things = new ArrayList(); background(#ffffff); } void draw() { if (bClearScreen) background(#ffffff); if (mousePressed && (mouseButton==LEFT)) spawn(); if (things.size() > 0) { for (int i=0, sz=things.size(); i