This week we gave a talk and workshop at RIT. The students already knew the basics of Processing, so I put together some examples using external libraries to show how Processing could be extended. As I was searching processing’s libraries page I noticed a gif player / exporter library by Patrick Meister. He posted some sample code to make the process easier and I put together a quick application for recording gifs from your computer’s camera.
Anthony and I recently gave a talk about the Lab and the type of work and projects that we create.
We displayed Twelement and many clever tweets that showed up in real time on the large projection.
We also did a processing workshop.
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.
I tried creating a small eco system. The small dots are called food. The triangles are the second lowest on the food chain behind the food. The turquiose circles are in the middle of the food chain and only the large green circles can eat them. None of the same species will eat each other. The predators select the closest prey, symbolized by the white line, and accelerates in their direction, the larger predators moving slower. The prey will try to avoid the predators. The turquiose circles only move toward the closest prey, while the largest predators also apply a gravitational pull toward their prey, pulling in and moving toward their prey. The larger each object, the more gravitational force is applied.
Every time that a predator eats, his life is extended, however, if he does not eat enough, ahhhhh! He or she will explode and contribute back to the eco system, generating lil guys and food, based on their size.
Built with Processing