Hi people, have a new question:
When using P3D the text is written with the original background of your sketch (or any color, don’t know from where it takes the color).
I was trying to put a text but there appear a text background that I don like, much easier to see the picture:
Can I delete the background color of the text or something? (in other texts I don’t have any problem, but this one is bothering me)
This is the code if it helps in something:
float b=0;
void setup(){
size(1024,900,P3D);
background(0);
noStroke();
}
void draw(){
background(0);
b = map(mouseY,0,height,-190,200);
pushMatrix();
translate(width/2+200,height/2);
pushStyle();
fill(0,0,255);
stroke(0,0,255);
textSize(50);
fill(0,0,255);
text("Z",0,0,10);
text("z",20,-10,10);
text("Z",30,-50,10);
popStyle();
fill(255);
beginShape();
vertex(-150,0);
bezierVertex(-150,0,-10,-190,150,0);
bezierVertex(150,0,10,190,-150,0);
endShape(CLOSE);
fill(0);
ellipse(0,0,100,100);
fill(255);
ellipse(0,0,40,40);
fill(122);
beginShape();
vertex(-150,0);
bezierVertex(-150,0,-10,-190,150,0);
bezierVertex(150,0,10,b,-150,0);
endShape(CLOSE);
popMatrix();
}