White Outline in pills

This commit is contained in:
Dragon Fire
2020-06-13 22:27:31 -04:00
parent 1f8c808a0e
commit 1ade33cfc4
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -59,7 +59,10 @@ module.exports = class PillsCommand extends Command {
const lines = await wrapText(ctx, text, 280);
const topMost = 455 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
for (let i = 0; i < lines.length; i++) {
ctx.strokeStyle = 'white';
ctx.lineWidth = 5;
const height = topMost + ((fontSize + 10) * i);
ctx.strokeText(lines[i], 183, height);
ctx.fillText(lines[i], 183, height);
}
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'pills.png' }] });
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.25.0",
"version": "116.25.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {