Drawing text

Making my way through the Drawing text recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to declare PFont objects for the fonts to be used in the Sketch and set the second parameter of the textFont function to determine the size of the text. For example, textFont …

Advertising inside Melbourne’s Metro Trains

An uncommon sight. Advertising on the inside one of  Melbourne’s Metro Trains. This could be a test for a possible revenue stream for the franchise operator of our suburban railway network. I’ve seen advertising on the outside of trains before, but never on the inside. This is new. Also, the irony of an advertising campaign for …

Drawing basic shapes

Making my way through the Drawing basic shapes recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to use the rect, ellipse, quad and triangle functions to draw basic geometric shapes. I also found it interesting how two for loops are used to create the grid background pattern. I’m curious …

Keyboard interaction

Making my way through the Keyboard interaction recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned about using keyPressed, keyReleased and keyTyped functions to assign keys on the keyboard to execute code and also a bit more about if tests and declaring variables, particularly changing their values when specified keys are …