User-defined Functions from Albert Schueller on Vimeo.
The entries in this blog correspond to an open, on-line course introduction to the Processing programming language. Questions and comments about individual lessons are encouraged and should be placed in the comments section of the corresponding blog post. I'll try to answer as many questions as I can. The course web page is http://carrot.whitman.edu/IntroProcessing.
Sunday, June 30, 2013
Day 07
Wednesday, June 26, 2013
Day 06
Conditional Statements from Albert Schueller on Vimeo.
We finish the mouse circle interaction example using a Boolean expression derived from the distance function. We continue the example using the mouseClicked() function and introduce the other mouse-specific functions.
Monday, June 24, 2013
Day 05
Variables and decision making. from Albert Schueller on Vimeo.
We discuss the notion of variables in programming. We also introduce Boolean expressions and conditional statements. We finish with an example in which a circle changes color when the mouse pointer is moved into it. We will finish this example in the Day 06 lecture.
Friday, June 21, 2013
Day 04
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.
Wednesday, June 19, 2013
Day 03
Color and transparency. from Albert Schueller on Vimeo.
We review coordinate systems and shapes by recreating a classic doodle from childhood. We continue the example by introducing color to the figure. We explain the grayscale and RGB color schemes. We introduced the stroke() and fill() commands. We finish with the idea of transparency.
Friday, June 14, 2013
Day 02
6-14-2013 10-54-36 from Albert Schueller on Vimeo.