This commit is contained in:
Dragon Fire
2020-04-21 11:00:30 -04:00
parent 96d56bac34
commit 8138bed4cf
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class JeopardyQuestionCommand extends Command {
ctx.fillStyle = 'white';
ctx.font = '62px Korinna';
const lines = await wrapText(ctx, text.toUpperCase(), 813);
const topMost = (canvas.height / 2) - (((62 * lines.length) / 2) + ((27 * (lines.length - 1)) / 2));
const topMost = (canvas.height / 2) - (((48 * lines.length) / 2) + ((27 * (lines.length - 1)) / 2));
ctx.fillStyle = 'black';
ctx.fillText(lines.join('\n'), (canvas.width / 2) + 6, topMost + 6);
ctx.fillStyle = 'white';