title: Exporting a video in p5.js
body: <p>I am creating a simple animation program in p5.js. When a user clicks the save button, I want to download a video of the animation.</p>
  
  <p>I have an object called <code>frames</code> where each key is labelled <code>frame_1</code>, <code>frame_2</code> and so on. The value associated with each key is an <code>array</code> of line segments that makes up that frame.</p>
  
  <p>I am trying to think of an approach to take this data and create an mp4 video. p5.js has a built in <a href="https://p5js.org/reference/#/p5/save" rel="noreferrer">save function</a> that I thought might be helpful but it is not a full solution on its own. I could save each frame as an individual image and then somehow stitch those images together on the client side but I have yet to find a solution to this.</p>
  
  <p>Any other approaches would be great as well. The only requirement is that it is done client side.</p>