controlP5
in
Contributed Library Questions
•
2 years ago
hi guys
i have a problem with my sliders in controlP5. they don't want to work, i can't slide them, but they appear on the canvas.
i think it is because a transparent rectangle is covering the sliders. is this possible? is there a possibility to make sure, that all the controlP5 stuff sits on top of everything??
here a sample of my code... in the setup i call a function called setSliders. any ideas? i don't get it!
thank you!
void setup() {
controlP5 = new ControlP5(this);
controlP5.setAutoDraw(false);
controlP5.draw();
setSliders(20, 20, 20, 20, 20, 100, 20, 0, 20, 20, 20);
}
void setSliders(float _segmentSize, float _fontSize, float _thickness, float _objectSize, float _colorVal, float _transparency, float _amplifier, float _danceFactor, float _moduloNumber, float _moveLetterX, float _moveLetterY) {
controlP5.addSlider("segmentSize", 0, 255, _segmentSize, -680, -380, 100, 10);
controlP5.setColorBackground(color(50));
controlP5.setColorForeground(color(0, 150, 255, 50));
1