Hello, I try to show text and lines, but the text should be in the foreground. This does not work. The text is always drawn behind the lines.
I use the OPENGL renderer, because of the fast performance and I have Android 4.4.2.
Here is the code:
void setup()
{
size(720, 1280, OPENGL);
}
void draw()
{
# First draw the line
stroke(#FF0000);
strokeWeight(10.0);
line(0, 0, 500, 500);
# Then draw the text
textSize(37);
text("Hello", 80, 100);
}
Does anyone know, how to change this? I want to have the text in the foreground and not in the background.
Thanks in advance, SimpleProgrammer.