Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

controlp5 - Textfield background colour.

$
0
0

Hello,

I simply want text on a coloured background. I'm using the example ControlP5Textfield, and I think I've tried every method set*color*.

myTextlabelB.setFont(Font1); myTextlabelB.setColorValue(0xff80f000); // ff required, then green numbers. myTextlabelB.setColor(0xFF0000); // all black myTextlabelB.setColor(0xFFFF0000); // red numbers myTextlabelB.setColorActive(0xFF00FF00); // ineffective myTextlabelB.setColorActive(0x00FF00); // ineffective myTextlabelB.setColorBackground(0xffffffff); // ineffective myTextlabelB.setColorBackground(0xff000000); // ineffective myTextlabelB.setColorBackground(0x00802020); // ineffective myTextlabelB.setColorForeground(0x0000ff); // ineffective myTextlabelB.setColorForeground(0xFF0000ff); // ineffective

And, in general, is there better documentation on cp5? Each example lists all the methods, but it needs a sentence or two on each method, e.g. what's the difference between setColor and setColorValue? they seem to do the same?

Thanks.


Viewing all articles
Browse latest Browse all 2896

Trending Articles