How can you adjust one component of ControlP5 opacity/transparency/alpha?

I have this ControlP5 object.

cp5Object.get(ScrollableList.class, "Dropdown");

How can you set the opacity of just this component?

What I want is that when I press a button this "Dropdown" gradually appeared and disappeared.

I have been looking into setColor() method but this thing overrides the whole color of "Dropdown", while I just only want to adjust the opacity/transparency/alpha and not the color.

Sign In or Register to comment.