/** * ControlP5bang
* A bang doesnt have a value but only triggers an event that can be received by a * function named after the bang's name or parsing an event inside the controlEvent function. * By default a bang is triggered when pressed but this can be changed to 'release' * using theBang.setTriggerEvent(Bang.RELEASE).
* for implementation details see controlP5/Bang
* related examples ControlP5button
* by Andreas Schlegel 2010
* */ import controlP5.*; ControlP5 controlP5; int myColorBackground = color(0,0,0); color[] col = new color[] { color(100), color(150), color(200), color(250) }; void setup() { size(400,400); frameRate(30); controlP5 = new ControlP5(this); for(int i=0;i