Hi ,
I am drawing a knob as below using controlP5 library.
.
Relevant Code for the same is
Knob myKnobA;
cp5 = new ControlP5(this);
myKnobA = cp5.addKnob("knob")
.setRange(0,255)
.setValue(75)
.setPosition(100,70)
.setRadius(50)
.setNumberOfTickMarks(5)
.setTickMarkLength(4)
.setViewStyle(Knob.ARC)
.setDragDirection(Knob.VERTICAL)
;
I also want to display the values represented by each tick mark on the knob and also the selected value. Each value should be next to the respective tick mark.
Any code examples/ideas on how can this be done ?
1