ControlP5 Toggle
in
Contributed Library Questions
•
1 year ago
I just can't make the toggle() function to work. I want to change a variable's value in there and it just won't work. I'm an amateur so please excuse me if this seems like a "1+1" question.
Here's how I created my toggle:
tog.addToggle("off")
.setPosition(40,260)
.setSize(15,15)
.setState(false)
;
and here's how I figured out the toggle() function should work:
void toggle(boolean theFlag)
{
if(theFlag==true)
bisect=1;
else
bisect=0;
}
Also, how can I change the toggle's captionLabel? How about the highlight color?
Can anyone please enlighten me? Thanks.
1