This is an old revision of the document!


combining interactivity and photos in p5js

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:

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.

This version features stochastic sampling of the photo so that the eye is more frequently displayed; the mouse interaction is the same.

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.

  • p5js-photos-interactive.1710228830.txt.gz
  • Last modified: 2 months ago
  • by renick