Hello,
It should almost be white, but it's some kind of ugly blue (but this happened when update from 0.5.4 to 0.6.5 which I found via a web link
I want to set the background color of a label in controlP5, but it seems something went wrong:
- final int backgroundColor = 0x99ffffff;
- int i = 0;
- for (final Slider slider : mSliders) {
- slider.setGroup(ctrl);
- slider.setId(i);
- final Label label = slider.getCaptionLabel();
- label.toUpperCase(true);
- label.setColorBackground(backgroundColor);
- final ControllerStyle style = label.getStyle();
- style.padding(4, 0, 1, 3);
- style.marginTop = -4;
- style.marginLeft = 0;
- style.marginRight = -14;
- slider.plugTo(mControl);
- i++;
- }
It should almost be white, but it's some kind of ugly blue (but this happened when update from 0.5.4 to 0.6.5 which I found via a web link
kind regards,
Johannes
1