ControlP5 Java
in
Contributed Library Questions
•
2 years ago
Hello,
I'm currently embedding a Sketch from generative-gestaltung.de in a Swing GUI (and will extend it afterwards).
The following ControlP5 task isn't working:
mSliders[si] = mControlP5.addSlider("mDotSize", 0, 10, left, top + posY + 0, len, 15);
mSliders[si++].setLabel("dotSize");
Does the Stringg "mDotSize" has to equal the (global) variable associated with the value? How is the connection achieved? At first I tried the following
transient float mDotSize = 3;
then replaced transient with public (but it seems the java modifiers aren't the reason, why I can't get another value for mDotSize than 3). The value is unchanged when changing the slider.
regards,
Johannes
I'm currently embedding a Sketch from generative-gestaltung.de in a Swing GUI (and will extend it afterwards).
The following ControlP5 task isn't working:
mSliders[si] = mControlP5.addSlider("mDotSize", 0, 10, left, top + posY + 0, len, 15);
mSliders[si++].setLabel("dotSize");
Does the Stringg "mDotSize" has to equal the (global) variable associated with the value? How is the connection achieved? At first I tried the following
transient float mDotSize = 3;
then replaced transient with public (but it seems the java modifiers aren't the reason, why I can't get another value for mDotSize than 3). The value is unchanged when changing the slider.
regards,
Johannes
1