Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
p5js-photos [2024/02/22 00:59] renickp5js-photos [2024/02/22 01:10] renick
Line 21: Line 21:
 </HTML> </HTML>
  
 +==== getting part of the image and displaying it ====
 +
 +We use the 'get' function to take part of the image. We need to say to start from where, and then the size of the a rect to get from that image. Then we can use that as the source of a new image using the image function, whose position we can control as shown in this example:
 +
 +<HTML>
 +<iframe src="https://editor.p5js.org/renick/full/BojYOjuLw" width=99% height=800></iframe>
 +</HTML>
  • p5js-photos.txt
  • Last modified: 4 months ago
  • by renick