Week 7

7

Mar 8
Processing. Variable scope, not all variables can be seen everywhere in a program, and that is a very good thing. Learning how to create more modular and easy to understand programs by creating our own functions. Function arguments and return values. A brief introduction to object oriented programming and how to create your own types.

Read “Getting Started. Welcome to Processing!” by Ben Fry and Casey Reas.
Read “Object Oriented Programming” by Daniel Shiffman.

processing_flower

Assignment: Create a sketch with an interactive flower. Create the flower using Object Oriented Programming techniques. What attributes and behaviors can you create for your flower class? I suggest that you do the readings before the assignment. Post an image from your sketch on your blog, and bring your code to class. You don’t need to post the code to you blog.