Examples Video on Canvas

Video on Canvas

Using the createVideo() and image() functions, you can upload a video into the canvas. Since the video capture is passed through the image() constructor, you can add filters to the video capture using the filter() method. To run this example locally, you will need a running local server. To build a video without embedding it within the canvas, visit the Video example.

Video on Canvas: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!