From 3fe06d3870621d6fb1da006613d21afe37acf4f8 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Mon, 5 Nov 2018 17:35:35 -0800 Subject: [PATCH] watermark opacity --- favicon.ico | Bin 318 -> 0 bytes index.html | 13 ++++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 favicon.ico diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index c77cebddec7343e833aa7bf0a5acb28e171298e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmb78K@Pwm48p_*(96y{`po@YX|;(v8EF8mm=-81lG2J+fCoSmDZZlj9bf1ae@oP! dr+c>@K-{=`CpXV)?TAk`J9*~UjQfrMKL&0}3JL%K diff --git a/index.html b/index.html index 0c55cad3..0ce16df6 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,6 @@ -
@@ -254,6 +253,13 @@
+ Watermark Opacity +
@@ -951,7 +959,7 @@ function drawWatermark() { var x = cardWidth / 2 - width / 2 var y = watermarkY - height / 2 //globalAlpha insures that the watermark is drawn partially transparent. This value may not be perfect but the watermark colors are calibrated to it - card.globalAlpha = 0.4 + card.globalAlpha = document.getElementById("inputWatermarkOpacity").value //if the following if statement is true, the watermark will be drawn in two halves of the chosen colors. Otherwise, a single watermark of the first chosen color is drawn. if (document.getElementById("checkboxSecondWatermarkColor").checked == true) { drawMask(document.getElementById("watermarkColorSelection").value, x, y, width, height, card, imgWatermark, imgMultiGradient, false) @@ -1261,7 +1269,6 @@ function downloadCardImage(linkElement) { } linkElement.href = cardImageData } - \ No newline at end of file