// // a simple bubble machine // can be a snow generator when turned upside down :) // // no copyright, january 2007, benn:org // int bubbleCount = 100; // how many concurrent bubbles do we want? Bubble[] bubbles; // declare array for bubbles int frameX; int frameY; int frameW; int frameH; PImage bg; // declare image for background void setup() { bg = loadImage("information.jpg"); // load background picture size(352,264); // sketch size needs to match image dimensions frameRate(20); // set frame rate noStroke(); // switch off stroke // set position and dimensions of bubble frame frameX = 142; frameY = 35; frameW = 133; frameH = 128; // create and fill bubble array bubbles = new Bubble[bubbleCount]; for (int i=0; i