A randomized composition maker that will create shapes of a random size, filled with a random shade of grey, and place them in a …
Random Image Composition
Create a composition with randomly chosen and placed images. A variable in the Sketch (numberImages) tracks the number of images that the two …
Random Lines with Processing
Creating compositions of random lines is easy with Processing. Lines of various shades of grey are drawn across the width of the frame inside …
Random Properties
An example of generating random properties about a character. The values are stored in arrays, and when an instance of the Character class is …
Dynamic Button
One button is used to move through content stored in an array. The button has "Next" on it until all elements in the …
Fishing Game
Code to create a simple fishing game that allows a graphic "character" - in this case a boat - to move around an area …
Repetitive Lyrics Using Arrays & Nested Loop
A variation on the solution at rosettacode.org that uses arrays, a nested loop, and composite formatting to print out the repetitive lyrics …