mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
fixed transparency
This commit is contained in:
@@ -576,6 +576,8 @@ 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...
|
||||||
|
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)
|
||||||
@@ -617,7 +619,7 @@ function cardClock() {
|
|||||||
// card.moveTo(0, setSymbolY)
|
// card.moveTo(0, setSymbolY)
|
||||||
// card.lineTo(749, setSymbolY)
|
// card.lineTo(749, setSymbolY)
|
||||||
// card.stroke()
|
// card.stroke()
|
||||||
}
|
}
|
||||||
//Sets up the initial clock
|
//Sets up the initial clock
|
||||||
var cardClockInterval = setInterval(cardClock, 1000 / document.getElementById("inputFPS").value)
|
var cardClockInterval = setInterval(cardClock, 1000 / document.getElementById("inputFPS").value)
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -934,7 +936,6 @@ 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