/**
FeedbackDrWho.pde
Dave Bollinger Jun 2007
http://www.davebollinger.com
Usage: just watch the pretty color.
Apologies to non-sci-fi geeks who don't get the "Dr. Who" reference. :D
*/
import processing.opengl.*;
FeedbackEffects fbfx; // the feedback texturizer
void setup() {
size(256,256,OPENGL);
fbfx = new FeedbackEffects(this, 0f, 1f, 252f);
fbfx.wiggle(true, 0.05, 0.05, 0f);
fbfx.wobble(true, 0.3, 0.02, 1.1f);
colorMode(HSB);
}
void draw() {
background(0);
fbfx.draw(); // draw the feedback texture as background
addColor(); // draw new source material
fbfx.grab(); // grab frame as texture for next frame
}
void addColor() {
fill(color(random(256), 255, 255, 128));
noStroke();
ellipse(width/2f+random(-5,5), height/2f+random(-5,5), 10, 10);
}