mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -52,6 +52,7 @@ module.exports = class FireCommand extends Command {
|
|||||||
encoder.setRepeat(0);
|
encoder.setRepeat(0);
|
||||||
encoder.setDelay(4);
|
encoder.setDelay(4);
|
||||||
encoder.setQuality(200);
|
encoder.setQuality(200);
|
||||||
|
encoder.setTransparent('#000000');
|
||||||
const ratio = avatar.width / avatar.height;
|
const ratio = avatar.width / avatar.height;
|
||||||
const height = Math.round(avatar.width / ratio);
|
const height = Math.round(avatar.width / ratio);
|
||||||
for (let i = 0; i < frameCount; i += 2) {
|
for (let i = 0; i < frameCount; i += 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user