Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
p5js-photos-interactive [2024/03/12 00:32] – created renickp5js-photos-interactive [2024/03/12 00:56] (current) renick
Line 9: Line 9:
 </HTML> </HTML>
  
-===== more complex example of photos and interaction =====+===== simple example of photos and interaction (doesn't draw 60 times per second) ===== 
 + 
 +This version might be better because it's not redrawing the photos 60 times per second. 
 + 
 +<HTML> 
 +<iframe src="https://editor.p5js.org/renick/sketches/QePb8Now7" width=99% height=800></iframe> 
 +</HTML> 
 + 
 +===== sampling a photo and mouse 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. 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.
Line 17: Line 25:
 </HTML> </HTML>
  
-===== more complex example of photos and interaction =====+===== stochastic sampling of a photo and mouse interaction =====
  
 This version features stochastic sampling of the photo so that the eye is more frequently displayed; the mouse interaction is the same. This version features stochastic sampling of the photo so that the eye is more frequently displayed; the mouse interaction is the same.
Line 25: Line 33:
 </HTML> </HTML>
  
-===== even more complex example of photos and interaction =====+===== multiple photos, multiple types of mouse 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. 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.1710228752.txt.gz
  • Last modified: 2 months ago
  • by renick