Use octree with optimizer

This commit is contained in:
Dragon Fire
2024-04-25 00:51:13 -04:00
parent 3eed5c373b
commit 0711f5a43d
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = class TriggeredCommand extends Command {
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'triggered.png'));
const { body } = await request.get(avatarURL);
const avatar = await loadImage(body);
const encoder = new GIFEncoder(base.width, base.width);
const encoder = new GIFEncoder(base.width, base.width, 'octree', true);
const canvas = createCanvas(base.width, base.width);
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'white';