mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -61,7 +61,7 @@ module.exports = class MatrixCommand extends Command {
|
||||
encoder.setQuality(10);
|
||||
const distortedCanvas = createCanvas(avatar.width, avatar.height);
|
||||
const distortedCtx = distortedCanvas.getContext('2d');
|
||||
ctx.drawImage(avatar, 0, 0);
|
||||
distortedCtx.drawImage(avatar, 0, 0);
|
||||
distort(distortedCtx, 20, 0, 0, avatar.width, avatar.height, 5);
|
||||
for (let i = 0; i < frameCount; i++) {
|
||||
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'matrix', `frame-${i}.gif`));
|
||||
|
||||
Reference in New Issue
Block a user