/** * ControlP5 Bang * A bang triggers an event that can be received by a function named after the bang. * By default a bang is triggered when pressed, this can be changed to 'release' * using theBang.setTriggerEvent(Bang.RELEASE). * * find a list of public methods available for the Bang Controller * at the bottom of this sketch. * * by Andreas Schlegel, 2012 * www.sojamo.de/libraries/controlp5 * */ import controlP5.*; ControlP5 cp5; int myColorBackground = color(0, 0, 0); color[] col = new color[] { color(100), color(150), color(200), color(250) }; void setup() { size(400, 600); noStroke(); cp5 = new ControlP5(this); for (int i=0;i