We are about to switch to a new forum software. Until then we have removed the registration on this forum.
-I've noticed two things about text in a PGraphic layer: -
pg.beginDraw();
pg.fill(255, 80);
pg.text("asdf", 15, 15);
pg.endDraw();
-Its transparency doesn't change (at least using JAVA2D), and it doesn't render on the layer(?)-
if (frameCount % 60 > 30) image(pg, 0, 0); //inside draw() function
-When the layer is not displayed the text keeps there.-
Answers
I'm not sure if I entirely understand your problem. First instinct response: Do you call
background()
at the beginning ofdraw()
?I wasn't cleaning the screen. What a fool. Thanks. Transparency worked too (only in JAVA2D. In P2D or P3D doesn't work).
It was a simple window object that appears when mouse is pressed.
I should think another fade out implementation .