Delay in draw makes my setup wait

Hello. This is probably just me being a noob, but i have an annoying problem. If i do something in setup, and have a delay in draw, the setup waits for the draw delay before doing stuff.. This applies for functions aswell.

This is my code: void setup(){
textSize(32);
text("word", 10, 30);
fill(0, 102, 153);
text("word", 10, 60);
fill(0, 102, 153, 51);
text("word", 10, 90);
}

void draw(){
delay(5000);
}

What happens is that the box comes up, waits 5 seconds, and THEN the text is displayed. Why does it do that?

Tagged:

Answers

Sign In or Register to comment.