mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Make all eject frames png (for color)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user