ControlP5 ColorPicker size adjusting

edited September 2016 in Library Questions

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!

Sign In or Register to comment.