Make all eject frames png (for color)

This commit is contained in:
Dragon Fire
2024-04-25 19:50:55 -04:00
parent 47b1eac530
commit 62da795ed9
105 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ module.exports = class EjectCommand extends Command {
encoder.setDelay(100);
encoder.setQuality(10);
for (let i = 0; i < frameCount; i++) {
const frameID = `frame_${i.toString().padStart(2, '0')}.gif`;
const frameID = `frame_${i.toString().padStart(2, '0')}.png`;
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'eject', frameID));
ctx.drawImage(frame, 0, 0);
if (i <= 17) {