Adjust label radius

This commit is contained in:
Dragon Fire
2024-04-28 15:05:43 -04:00
parent 61abce80fb
commit 850e7e05c7
+2 -2
View File
@@ -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;