controlP5 is messing up my fill-colors
in
Contributed Library Questions
•
19 days ago
hi everybody,
the folowing demo code shows my problem.
i want to use controlp5 in a 3d sketch in processing 2.0.1
the problem is as soon as i instanciate the controlp5-class my fill colors get messed up.
in this example the right box should be red and not brown.
HELP :)
import controlP5.*;
ControlP5 cp5;
void setup() {
size(1024, 700, P3D);
cp5 = new ControlP5(this);
}
void draw() {
lights();
background(0,0,0);
pushMatrix();
fill(255,0,0);
noStroke();
translate(width*0.75, height*0.5, 0);
box(150);
popMatrix();
pushMatrix();
fill(0,255,0);
noStroke();
translate(width*0.25, height*0.5, 0);
box(150);
popMatrix();
}
1