Spaces:
Paused
Paused
Commit
·
2e113c2
1
Parent(s):
5f366e1
faster playback spped
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -560,8 +560,8 @@
|
|
| 560 |
ctx.drawImage(img, 0, 0, gifWidth, gifHeight);
|
| 561 |
console.log('Image', index + 1, 'drawn to canvas at', gifWidth + 'x' + gifHeight);
|
| 562 |
|
| 563 |
-
// Add frame to GIF with
|
| 564 |
-
gif.addFrame(canvas, {delay:
|
| 565 |
console.log('Frame', index + 1, 'added to GIF');
|
| 566 |
|
| 567 |
loadedImages++;
|
|
|
|
| 560 |
ctx.drawImage(img, 0, 0, gifWidth, gifHeight);
|
| 561 |
console.log('Image', index + 1, 'drawn to canvas at', gifWidth + 'x' + gifHeight);
|
| 562 |
|
| 563 |
+
// Add frame to GIF with 200ms delay (faster playback)
|
| 564 |
+
gif.addFrame(canvas, {delay: 200});
|
| 565 |
console.log('Frame', index + 1, 'added to GIF');
|
| 566 |
|
| 567 |
loadedImages++;
|