mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user