[Go to memo](./Generate random colors that look great on white background.md).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function recordCanvas(canvas, time) { | |
const frameRate = 60; | |
const mimeType = "video/webm"; | |
const chunks = []; | |
function saveChunks(evt) { | |
// store our final video's chunks | |
if (evt.data.size > 0) { | |
chunks.push(evt.data); | |
} |
OlderNewer