We used Processing and altered some open code from the Processing training site, "Fun Programming". We found a color detection code and altered it to suit our needs.
We added the Physics, Minum, and Syphon libraries to create the interactivity we were looking for.