(Note this video was shot in Fall 2012)

This video discusses how draw() is also a loop. When does it make sense to have a for or while loop in draw() vs. just use the fact that draw() itself loops?

github.com/shiffman/LearningProcessing/tree/master/chp06_loops/example_6_08_drawisaloop

# Computer Programming for the Total Beginner

shiffman Plus

This video series follows along with my "Introduction to Computational Media" course at itp.nyu.edu. It's in progress. Watch at your own risk. Some videos were shot a year ago, some I'm making right now. I'm not sure if it will all come together…

+ More

This video series follows along with my "Introduction to Computational Media" course at itp.nyu.edu. It's in progress. Watch at your own risk. Some videos were shot a year ago, some I'm making right now. I'm not sure if it will all come together and make any sense.

#### Shout Box

• as you seems to like speaking french sometimes : merci beaucoup ! Ces vidéos et celles de Nature of code sont formidables, remarquables !

by Chevalier Quentin

• Hey Dan, when do you think you'll have parts 10-14 back up? Learning a lot! Thanks!

by Alex Downs Wagner

• int i = 0;
float x = 10;

while( i < s.length()) {
char c = s.charAt(i);
fill(random(10,100));
text(c,x,200);
x = x + textWidth(c);
if(keyPressed){
i++;
}
}

i changed the for loop to a while loop , and then i
am trying to make it so that if you press any key then according to the index the sentence should be printed but my program is not showing any output box when i run it, can you help?

by Karun Manoj

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.