Uppercase text in jeopardy question

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