More fixes and features to the card-creator #67

Merged
waifu merged 8 commits from card-creator into dev 2025-07-19 21:42:52 -07:00
Showing only changes of commit 21005d311c - Show all commits

View file

@ -142,6 +142,10 @@ frameSelect.addEventListener("change", updateFrame);
function drawCard() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
// Place a white background
ctx.fillStyle = "#FFFFFF"; // white background
// make it smaller than the size of the canvas
ctx.fillRect(30, 30, canvas.width - 60, canvas.height - 60);
// Draw uploaded art as cropped and centered background if present
if (uploadedImage) {