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 by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.