From 46ea4a65fefe13ca581819ec82508fed7c3df8cc Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 7 Nov 2018 15:59:06 -0800 Subject: [PATCH] test --- data/scripts/mask.js | 3 ++- index.html | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data/scripts/mask.js b/data/scripts/mask.js index 67ecb748..91f30075 100644 --- a/data/scripts/mask.js +++ b/data/scripts/mask.js @@ -15,6 +15,7 @@ function drawMask(img, x, y, width, height, targetContext, imgMask, secondMask, maskContext.globalCompositeOperation = "source-in" } } + console.log(width + ", " + height + " --- " + imgMask.width + ", " + imgMask.height + " --- " + img.width + ", " + img.height) maskContext.drawImage(imgMask, 0, 0, width, height) maskContext.globalCompositeOperation = "source-in" if (img.src == undefined) { @@ -24,4 +25,4 @@ function drawMask(img, x, y, width, height, targetContext, imgMask, secondMask, maskContext.drawImage(img, 0, 0, width, height) } targetContext.drawImage(mask, x, y, width, height) -} \ No newline at end of file +} diff --git a/index.html b/index.html index e6eae3ae..f7d4f05d 100644 --- a/index.html +++ b/index.html @@ -612,7 +612,8 @@ function cardClock() { //Draws the card image, then... drawPicture() //draws the card frame on top - if (transparentBorder == false) { + if (transparentBorder != true) { + //console.log(cardWidth + " " + cardHeight) drawMask(imgBorder, 0, 0, cardWidth, cardHeight, card, imgArtMask, false, false) } else { card.drawImage(imgBorder, 0, 0, cardWidth, cardHeight) @@ -1280,4 +1281,4 @@ function downloadCardImage(linkElement) { } - \ No newline at end of file +