based on this article by Alexis Delrieu.
The objective is to record a video of a p5 sketch using the MediaRecorder
I used it with a parameter firstFrame and lastFrame because I want control over these for looping animations.
I'm not too happy with the result because a black screen appears at the end of the video. If you know how to fix it, please open an issue or contact me.
Feel free to use my code.
Simply open index.html
Recording parameters are at the start of sketch.js