autoupdate controlP5?
in
Contributed Library Questions
•
2 years ago
hej,
but when running this, nothing is updated / the slider is fixed on its initial value.
i am a big fan of controlP5, and i have used it for some projects now. there is something i can't figure out though.
i would like the controlP5 controllers to update automatically when i change the corresponding values in processing. so something like this:
- import controlP5.*;
- ControlP5 controlP5;
- int intSlider;
- void setup() {
- size(400,400);
- controlP5 = new ControlP5(this);
- controlP5.addSlider("intSlider",1,20, 5, 10,10,50,15);
- }
- void draw() {
- background(0);
- intSlider ++;
- intSlider = intSlider % 20;
- delay(100);
- }
should result in the slider moving continuously.
i know i can used setSlider(), but when having many sliders + values this becomes quite cumbersome.
is an autoupdate possible?
thanks,
/j
1