This commit is contained in:
Dragon Fire
2024-04-28 14:55:54 -04:00
parent 3cd67819d6
commit 54ec2a3031
+2 -2
View File
@@ -90,10 +90,10 @@ module.exports = class TweetCommand extends Command {
const y = 0;
const imageWidth = 740;
const radius = 15;
this.createImageBorder(imageCtx, radius, x, y, imageWidth, imageHeight);
this.roundedPath(imageCtx, radius, x, y, imageWidth, imageHeight);
imageCtx.clip();
imageCtx.drawImage(imageData, 0, 0, imageWidth, imageHeight);
this.createImageBorder(imageCtx, radius, x, y, imageWidth, imageHeight);
this.roundedPath(imageCtx, radius, x, y, imageWidth, imageHeight);
imageCtx.strokeStyle = '#303336';
imageCtx.lineWidth = 10;
imageCtx.stroke();