From 850e7e05c7380e05e727486128359a7c9f790468 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Apr 2024 15:05:43 -0400 Subject: [PATCH] Adjust label radius --- commands/edit-image-text/tweet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index e649d6b3..fbfc133d 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -124,10 +124,10 @@ module.exports = class TweetCommand extends Command { const labelImg = await loadImage(labelData.body); const labelCanvas = createCanvas(20, 20); const labelCtx = labelCanvas.getContext('2d'); - this.roundedPath(labelCtx, 15, 0, 0, 20, 20); + this.roundedPath(labelCtx, 5, 0, 0, 20, 20); labelCtx.clip(); labelCtx.drawImage(labelImg, 0, 0, 20, 20); - this.roundedPath(labelCtx, 15, 0, 0, 20, 20); + this.roundedPath(labelCtx, 5, 0, 0, 20, 20); labelCtx.clip(); labelCtx.strokeStyle = '#303336'; labelCtx.lineWidth = 5;