Chapter 5: Iteration

Emboss Filter

The first video for Chapter 5 of Introduction to Programming Using Processing introduces the concept of iteration (looping), and shows why it's necessary for our programs.

The second video for Chapter 5 of Introduction to Programming Using Processing introduces the simplest pre-test loop, the while loop.

The third video for Chapter 5 of Introduction to Programming Using Processing develops a sample "mouse trail" application that uses the while loop.

The fourth video for Chapter 5 of Introduction to Programming Using Processing introduces the other pre-test loop in the language, the for loop.

In the fifth video for Chapter 5 of Introduction to Programming Using Processing , we re-do the mouse trail example from part three, using a for loop instead of a while.

The sixth video for Chapter 5 of Introduction to Programming Using Processing covers the post-test loop in the language, do / while. Also, we introduce the concept of nested loops.

The seventh video for Chapter 5 of Introduction to Programming Using Processing presents an image filtering example that uses nested for loops. In particular, we apply a simple edge detection filter to an image.

This optional video provides another example of nested for loops, with a visualization of such a construct in action.