Posts Tagged ‘Pumpkin Head’

Arrays and Iteration in Processing (Light the Pumpkin Heads!)

Using arrays and loops, I had to write a program that creates multiple instances of an object. I reworked last week’s project to allow the user to hold down the mouse to determine the size of the Pumpkin and release the mouse to place it. See what happens as you hold down a key! Light [...]

Modularity in Processing: Functions and Objects (Pumpkin Head meets Apple)

Pumpkin Head meets Apple! Reworking last week’s code and combining it with Juri’s project, we let Apple and Pumpkin come and play together. Apple bounces around the canvas, while you can place up to three Pumpkin Heads at a time by clicking with the mouse. Enjoy! (Btw: if you click a fourth time, the pumpkin [...]