This commit is contained in:
Dragon Fire
2020-07-02 23:50:38 -04:00
parent 9c80fe9fa7
commit bb479848c4
+2 -3
View File
@@ -70,7 +70,6 @@ module.exports = class MarioBrosViewsCommand extends Command {
ctx.textAlign = 'center';
ctx.font = '47px Noto';
ctx.fillText(thing, 420, 108, 180);
ctx.textAlign = 'start';
ctx.fillStyle = 'white';
ctx.font = '36px Noto';
let fontSize = 36;
@@ -78,7 +77,7 @@ module.exports = class MarioBrosViewsCommand extends Command {
fontSize--;
ctx.font = `${fontSize}px Noto`;
}
const marioLines = await wrapText(ctx, mario, 381);
const marioLines = await wrapText(ctx, mario, 170);
const marioTopMost = 450 - (((fontSize * marioLines.length) / 2) + ((20 * (marioLines.length - 1)) / 2));
for (let i = 0; i < marioLines.length; i++) {
ctx.strokeStyle = 'black';
@@ -93,7 +92,7 @@ module.exports = class MarioBrosViewsCommand extends Command {
fontSize--;
ctx.font = `${fontSize}px Noto`;
}
const luigiLines = await wrapText(ctx, luigi, 381);
const luigiLines = await wrapText(ctx, luigi, 170);
const luigiTopMost = 450 - (((fontSize * luigiLines.length) / 2) + ((20 * (luigiLines.length - 1)) / 2));
for (let i = 0; i < luigiLines.length; i++) {
ctx.strokeStyle = 'black';