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

ControlP5 ColorPicker size adjusting

$
0
0

Hi all,

I am implementing a GUI which has an accordion and a colorPicker inside of one of its groups. I am setting the size of colorPicker with setSize(), but the color bars (R,G,B) does not change with this command. How can I change color bars size to fit the color area?

This is the code to implement colorPicker:

cp5.addColorPicker("Color Background") .setPosition(dw, 9 * dh) .setSize(13*dw, 6*dh) .setColorValue(color(255)) .moveTo(g6);

Thank you!


Viewing all articles
Browse latest Browse all 2896

Trending Articles