29:5211.2: Video Photobooth / Muybridge Style Animation - p5.js Tutorial
From the creator
This video looks at how to save a history of images from a live camera in p5.js / JavaScript. I first look at saving a single snapshot, followed by an array of images. The video ends with a "Muybridge" style animation of motion. Code: https://thecodingtrain.com/tracks/pixels/pixels/video-photobooth 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/xBs9FR9JE 🎥 Previous: https://youtu.be/bkGf4fEHKak 🎥 Next: https://youtu.be/nMUMZ5YRxHI References: 🔗 createCapture(): https://p5js.org/reference/#/p5/createCapture 🔗 Eadweard Muybridge: https://www.sfmoma.org/artist/eadweard_muybridge/ Videos: 🎥 Golan Levin's Modulo Operator video: https://www.youtube.com/watch?v=r5Iy3v1co0A Related Coding Challenges: 🚂 47 Pixel Sorting in Processing: https://youtu.be/JUDYkxU6J0o 🚂 83 Chrome Extension with p5.js Sketch - Doodle Chrome Extension: https://youtu.be/IXXNIcQQLU8 Timestamps: 0:00 Introduction 0:47 Add a button 1:40 Binding an event to a mouse press 3:48 get() function 4:44 Add an array to hold the video history 5:43 Push a copy of the video to the array 6:53 Chrome developer console 7:31 Add a loop to draw the snapshots to the canvas 10:30 Can we add animation? 11:30 Add a ready event 12:43 Limit the size of the array 15:48 Use modulo to offset the images 17:30 Why is the animation working? 17:30 Outro Editing by Mathieu Blanchette Music from Epidemic Sound 🚂 Website: https://thecodingtrain.com/ 👾 Share Your Creation! https://thecodingtrain.com/guides/pas
Published 2016-03-31 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
29:52
04:07
11:04"Anti-Slop" Designs with Impeccable (a Crash Course) #5 - Enable Image Generation
Net Ninja
2:25:40
42:55Java Graphics Programming Tutorial - How To Draw Shapes, Paths, Curves, and Apply Transformations
choobtorials
08:10
18:31