Questions:

https://www.youtube.com/watch?v=rNqaw8LT2ZU&list=PLRqwX-V7Uu6aKKsDHZdDvN6oCJ2hRY_Ig&index=4

https://editor.p5js.org/codingtrain/sketches/nFOs57gVh

time:12:58

Question: why is 0 mapping to 319, instead of 320?

-have a 320 pixels wide image, 0—>319, 1—>318

https://editor.p5js.org/icm4.0/sketches/OGSIfgFgy

  1. // Hide the DOM element cam.hide();

Why need to hide??

  1. // Why do I need this? cam.updatePixels();

Why need to update?

Screen Shot 2022-10-27 at 5.28.12 PM.png