mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 15:19:14 +02:00
Adjust label radius
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user