我正试着在画布上录一张画的gif。我正在使用这个库将画布输出保存为动画.GIF
为了证明概念,我使用了一个纯JS画布绘制脚本--
下面你可以找到init函数-我得到一个黑色的图像,不能添加新的帧到gif。我该如何解决这个问题呢?任何建议都很感谢。
function init() {
// Get the specific canvas element from the HTML document
canvas = document.getElementById('sketchpad');
// If the browser supports the