Tag: recipe 3

Making my way through the Using lights recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe, I learned how to declare the lightMode and lightDirection integers to allow for different lighting modes to be activated. Inside the setUp function they’re assigned a value of 0 and then referenced again in the if test. […]

Read more

Making my way through the Working with images recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to: use the loadImage function to load an image from my data folder into my Sketch declare a boolean (pixelMode) for the if test use the image function to display the […]

Read more