calling for loops sequentually
in
Programming Questions
•
1 year ago
Hi there!
I have a question according to the basic "loop cycle system" of processing:
More particularly if I write a new function, that contains let's say, 6 for loops. inside this function, are those for loops running/cycling at the same time, or are they running sequentially?
So if I want to call these for loops sequentially, (when the first is done, call the second, then the third and so on), how should i do it?
thanks in advance for any hint, cheers!
the structure is like this:
- void draw(){
- newFunction();
- }
- void newFunction(){
- for(i=1; i<100; i++){
- 1stLoopDoSomething;
- }
- for(i=1; i<100; i++){
- 2ndLoopDoSomething;
- }
- for(i=1; i<100; i++){
- 3rdLoopDoSomething;
- }
- for(i=1; i<100; i++){
- 4thLoopDoSomething;
- }
- for(i=1; i<100; i++){
- 5thLoopDoSomething;
- }
- for(i=1; i<100; i++){
- 6thLoopDoSomething;
- }
1