diff --git a/commands/edit-meme/illegal.js b/commands/edit-meme/illegal.js index f9ef8b81..0b8466b0 100644 --- a/commands/edit-meme/illegal.js +++ b/commands/edit-meme/illegal.js @@ -70,9 +70,11 @@ module.exports = class IllegalCommand extends Command { } ctx.textBaseline = 'top'; ctx.font = '20px Impact'; + ctx.textAlign = 'center'; const widthMid = frame.corners[2][0] - frame.corners[0][0]; const heightMid = frame.corners[2][1] - frame.corners[0][1]; const maxLen = frame.corners[0][0] - frame.corners[2][0]; + console.log(widthMid, 'x', heightMid, 'x', maxLen); ctx.fillText(`${text}\n${verb} NOW\nILLEGAL`, widthMid, heightMid, maxLen); encoder.addFrame(ctx); }