/** * Color Drops * by Xavier Gouchet (2008) */ boolean next = true; Drop brush; int count = 255; void setup(){ size(640,480); frameRate(60); background(255,255,255); } void draw(){ colorMode(HSB,255); smooth(); noStroke(); if (brush != null) brush.Paint(); } void mousePressed() { if (mouseButton == LEFT) brush = new Drop(); if (mouseButton == RIGHT) { background(255,0,255); brush = null; } }