mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Uppercase text in jeopardy question
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = class JeopardyQuestionCommand extends Command {
|
|||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.font = '62px Korinna';
|
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));
|
const topMost = (canvas.height / 2) - (((62 * lines.length) / 2) + ((27 * (lines.length - 1)) / 2));
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
ctx.fillText(lines.join('\n'), (canvas.width / 2) + 6, topMost + 6);
|
ctx.fillText(lines.join('\n'), (canvas.width / 2) + 6, topMost + 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user