I have a controlP5 question (many thanks to sojamo for the library).
I think it has a simple answer, have searched the forum but can't find one.
I have controlP5 numberBox using custom fonts.
When I enable the custom fonts, the font size is continuously printed to the processing console. It there a way to use the font without the console output? It is difficult to debug other aspects with this stream of numbers.
if you run following with SHOW_CONTROL_FONTS set to true and false you should see what I mean.
When TRUE, the font sizes scroll along in the console pane. When FALSE, they don't scroll but standard display returns.
Any thought on how I can use teh fonts but hide the console output?
Thanks in advance.
s
I think it has a simple answer, have searched the forum but can't find one.
I have controlP5 numberBox using custom fonts.
When I enable the custom fonts, the font size is continuously printed to the processing console. It there a way to use the font without the console output? It is difficult to debug other aspects with this stream of numbers.
if you run following with SHOW_CONTROL_FONTS set to true and false you should see what I mean.
When TRUE, the font sizes scroll along in the console pane. When FALSE, they don't scroll but standard display returns.
Any thought on how I can use teh fonts but hide the console output?
Thanks in advance.
s
- import controlP5.*;
ControlP5 gControl;
boolean SHOW_CONTROL_FONTS = false;
void setup() {
size (300,300);
gControl = new ControlP5(this);
ControlFont cf1 = new ControlFont(createFont("Arial",21));
ControlFont cf2 = new ControlFont(createFont("Arial",25));
gControl.addNumberbox("Steps")
.setPosition(100,height/2)
.setSize(100,36)
.setRange(1,100)
.setScrollSensitivity(0.5)
.setDirection(Controller.HORIZONTAL)
.setValue(2)
;
if (SHOW_CONTROL_FONTS) {
gControl.controller("Steps").valueLabel().setControlFont(cf2);
gControl.controller("Steps").captionLabel().setControlFont(cf1);
}
}
void draw() {
background(80);
}
1