Increase radius.

This commit is contained in:
armored-dragon 2025-03-05 01:59:57 -06:00
parent 00efd88d45
commit 9712718ea6
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -8,7 +8,6 @@ function drawNamePlate(name = "", userUUID = "", hasGroup = false, groupBannerUR
canvas.height = groupBannerHeight + nameTagHeight; canvas.height = groupBannerHeight + nameTagHeight;
if (hasGroup) { if (hasGroup) {
console.log("Has group")
const backgroundImage = new Image(); const backgroundImage = new Image();
backgroundImage.setAttribute('crossorigin', 'anonymous'); backgroundImage.setAttribute('crossorigin', 'anonymous');
backgroundImage.src = groupBannerURL; backgroundImage.src = groupBannerURL;
@ -51,7 +50,7 @@ function drawNamePlate(name = "", userUUID = "", hasGroup = false, groupBannerUR
} }
// Nametag background with inset border // Nametag background with inset border
const radius = 30; // Define the radius of the rounded corners const radius = 160; // Define the radius of the rounded corners
// Main fill color // Main fill color
ctx.fillStyle = "#111111ee"; ctx.fillStyle = "#111111ee";