Hi guys,
I’m having a bit of trouble with something. I have a FOR loop that’s running inside of a function. The loop loads a few file names from a website, and then adds them to a list.
My goal is to have the program update the draw event while this loop is running, to create a ‘progress bar’ of sorts. Basically I need to set up some kind of asynchronous for loop/draw loop that will update while something else is going on.
Is there any way for me to tell my program to update the draw event in each step of the FOR loop?
P.S. When I say “draw event” I actually mean “void draw() {}”. I’ve tried using a custom function called “drawUpdate(),” but it yields the same result. I’ve also tried placing the ‘draw event’ and ‘drawUpdate’ ABOVE the function containing the loop, but as expected, that does not work.