CCapture.jsCanvas 動畫捕獲包
CCapture.js 可以使用固定的幀率實現(xiàn)對網(wǎng)頁中 Canvas 的動畫進行捕獲,錄制成視頻。CCapture.js 依賴于 Whammy.js 和 gif.js。
示例代碼:
// Create a capturer that exports a WebM video
var capturer = new CCapture( { format: 'webm' } );
// Create a capturer that exports an animated GIF
// Notices you have to specify the path to the gif.worker.js
var capturer = new CCapture( { format: 'gif', workersPath: 'js/' } );
// Create a capturer that exports PNG images in a TAR file
var capturer = new CCapture( { format: 'png' } );
// Create a capturer that exports JPEG images in a TAR file
var capturer = new CCapture( { format: 'jpg' } );評論
圖片
表情
