We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm coding a imageloader, for avoid the green screen at start of my sketch. I want to loop only on a "loading" animation, until all my pictures are loaded. Can I stop the draw and starts it again, or I should use a solution like :
if(!imageLoaded){
"loading" animation
}
else{
the rest of my sketch
}
Answers
your approach to the solution is correct
A little example snippet:
see also the requestImage() example in reference.
@zumbaree : thanks
@Poersch : i use thread in my project but i never guessed to use it for load my pictures :D
@koogs : the requestImage gives me the same error than loadImage few months ago
Regards and thanks for your help