Today I gave a presentache / lecture to an incoming Parsons class about Object Oriented Programming. The class is focused on Processing and contains students of varying backgrounds and skill-sets. I put together a simple demo to help with the understanding.

This is the demo that came out of the example.

A custom Ball class is created to handle all of the attributes and actions of each ball. During the setup, 100 balls are created, each given a random location and speed. The individual balls change colors based on their y positions, the closer to the top, the more red, the closer to the bottom, the more green.

Download the source here. Feel free to post any inquiries.