Friday, June 21, 2013

Day 04

Here's a discussion of structured programming and, more specifically, the structure of a processing program. Warning:  There's a wee bit of misinformation in the video at about 13:55 about why the sketch is blank.  I correct myself later.  Watch for yourself:

Structured Programming, Simple Animation from Albert Schueller on Vimeo.

We discuss the notion of structured programming and the setup()/draw() structure of a basic processing sketch. We compare this structure to that of a simple flip book animation. We do a simple animation with a rectangle attached to the mouse and discuss some of the subtleties of repainting vs. not repainting the canvas. We do an example of a user-defined variable and use it to perform a simple animation. Finally, we introduce the random() function and use it to create a randomized animation of balls and ellipses.



No comments:

Post a Comment