This is an old revision of the document!
combining interactivity and photos in p5js
simple example of photos and interaction
This version uses four photos and a simple mouse click interaction; depending on where you click, one of the two photos will change randomly. View in full screen:
more complex example of photos and interaction
This version just samples the photo randomly and places a sample in each cell of the grid; the photos change based on the mouse position.
more complex example of photos and interaction
This version features stochastic sampling of the photo so that the eye is more frequently displayed; the mouse interaction is the same.
even more complex example of photos and interaction
This version uses multiple photographs, choosing a random photograph and then stochastic sampling of that photo; it also changes which photo is being sampled when the mouse is clicked.