SmokeSystem s; int NUM_PARTICLES = 1024; int NUM_ATTRACTORS = 1; void setup() { size(256,256); smooth(); s = new SmokeSystem(NUM_PARTICLES,NUM_ATTRACTORS,128,128); // framerate(30); } void draw() { background(40); s.run(); // image(s.buf,0,0,width,height);//,0,0,width,height,ADD); // copy(s.buf,0,0,s.buf.width,s.buf.height,0,0,width,height); blend(s.buf,0,0,s.buf.width,s.buf.height,0,0,width,height,BLEND); }