mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
fixed watermarks
This commit is contained in:
@@ -34,9 +34,9 @@ var setSymbolRight = cardWidth * 0.7797 //814
|
|||||||
var setSymbolWidth = cardWidth * 0.0402 //42
|
var setSymbolWidth = cardWidth * 0.0402 //42
|
||||||
var setSymbolHeight = cardHeight * 0.0320 //24
|
var setSymbolHeight = cardHeight * 0.0320 //24
|
||||||
//Watermark
|
//Watermark
|
||||||
var watermarkWidth = 0 //520
|
var watermarkWidth = cardWidth * 0.8787 //920
|
||||||
var watermarkHeight = 0 //250
|
var watermarkHeight = cardHeight * 0.2000 //150
|
||||||
var watermarkY = 600 //600
|
var watermarkY = cardHeight * 0.8225 //616
|
||||||
//Color Options
|
//Color Options
|
||||||
loadColors("white-Regular,high-Bottom,mid-Middle,low-Top,none-Single")
|
loadColors("white-Regular,high-Bottom,mid-Middle,low-Top,none-Single")
|
||||||
document.getElementById("secondColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
|
document.getElementById("secondColorSelection").innerHTML = document.getElementById("colorSelection").innerHTML
|
||||||
|
@@ -577,7 +577,6 @@ document.getElementById("secondWatermarkColorSelection").innerHTML = document.ge
|
|||||||
//Runs ten times every second (main loop)
|
//Runs ten times every second (main loop)
|
||||||
function cardClock() {
|
function cardClock() {
|
||||||
//fixes the global alpha just incase...
|
//fixes the global alpha just incase...
|
||||||
card.globalAlpha = 1
|
|
||||||
//Insures that the corners of the final image are transparent
|
//Insures that the corners of the final image are transparent
|
||||||
card.globalCompositeOperation = "source-over"
|
card.globalCompositeOperation = "source-over"
|
||||||
drawMask(document.getElementById("inputColor").value, 0, 0, cardWidth, cardHeight, card, imgCardMask, false, false)
|
drawMask(document.getElementById("inputColor").value, 0, 0, cardWidth, cardHeight, card, imgCardMask, false, false)
|
||||||
@@ -936,6 +935,7 @@ function drawWatermark() {
|
|||||||
drawMask(document.getElementById("watermarkColorSelection").value, x, y, width, height, card, imgWatermark, false, false)
|
drawMask(document.getElementById("watermarkColorSelection").value, x, y, width, height, card, imgWatermark, false, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
card.globalAlpha = 1
|
||||||
}
|
}
|
||||||
//Mana cost
|
//Mana cost
|
||||||
function drawManaCost() {
|
function drawManaCost() {
|
||||||
|
Reference in New Issue
Block a user