mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Make the tint deep pink
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class HeartsCommand extends Command {
|
||||
const avatar = await loadImage(body);
|
||||
const canvas = createCanvas(avatar.width, avatar.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
drawImageWithTint(ctx, avatar, 'pink', 0, 0, avatar.width, avatar.height);
|
||||
drawImageWithTint(ctx, avatar, 'deeppink', 0, 0, avatar.width, avatar.height);
|
||||
ctx.drawImage(base, 0, 0, avatar.width, avatar.height);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'hearts.png' }] });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user