tubeshowcase●1,669,243 videos♡ My collection 0
← Learn to Code

Learn to Code21:36

11.2: Video Photobooth / Muybridge Style Animation - p5.js Tutorial

The Coding Train ↗

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