ControlP5 Vertical Toggle

Is there any easy way to draw the controlP5 toggle vertically ? (as shown in following way.)

image

Hi @Ghostsss,

This is the linked post from the old forum I suppose:

Did you try the last solution?

On my system (MacOS) I had to change:

from: public void display(PApplet theGraphics , Toggle c )
to: to public void display(PGraphics theGraphics, Toggle c )

and add another function to get the value:

public void toggleValue(int value) {
  println(value);
}
1 Like