Lab 8: Processing


For this lab, I learned about programming with the Processing programming environment. Processing is an open source programming language and environment for users who want to create images, animations, and interactions. In this lab, my lab partner and I created a screen drawing of a pumpkin using two-dimensional primitive shapes and the basic color functions. We developed an algorithm to change the position and size of our 2D shape when a user moves the mouse.


First, Garrett and I learned the different functions we would need by going through a few Processing tutorials. Next, Garrett and I drew our pumpkin using multiple ellipses and rectangles.

After our shape was drawn and displayed correctly on the screen, we utilized a function that tracked our mouse’s x position. We altered the function to then zoom the pumpkin in or out as the x value increases or decreases.

All of this was done in a short lab session, so its not very impressive at all. Nevertheless, here is what we came up with:

The pumpkin’s size and position change in correspondence with the mouse’s x position.


This lab was a great way for me to learn how about the Processing programming environment. For many of our labs, we have programmed in the Arduino interface which I know is based upon Processing. I have now opened up many possibilities for future projects to include a visual display using Processing.

Leave a Reply

Your email address will not be published.