mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
restyle
This commit is contained in:
@@ -236,10 +236,10 @@ class cardText {
|
||||
}
|
||||
|
||||
function scaleX(xToScale) {
|
||||
return xToScale * cardWidth
|
||||
return Math.round(xToScale * cardWidth)
|
||||
}
|
||||
function scaleY(yToScale) {
|
||||
return yToScale * cardHeight
|
||||
return Math.round(yToScale * cardHeight)
|
||||
}
|
||||
|
||||
function drawCardObjects() {
|
||||
|
@@ -9,7 +9,9 @@ rootStyles.setProperty('--body-background', 'none')
|
||||
setCookie('colorPalette', 'dayRave')
|
||||
|
||||
//Stops the hue shift when another palette is loaded
|
||||
document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false)
|
||||
if (document.getElementById('inputColorPalette') != null) {
|
||||
document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false)
|
||||
}
|
||||
|
||||
function removeEventListener() {
|
||||
clearInterval(colorCycle)
|
||||
@@ -17,7 +19,7 @@ function removeEventListener() {
|
||||
}
|
||||
|
||||
//Shifts the hue
|
||||
var colorCycle = setInterval(shiftHue, 100)
|
||||
var colorCycle = setInterval(shiftHue, 200)
|
||||
var currentHueRotation = 0
|
||||
|
||||
function shiftHue() {
|
||||
|
@@ -9,7 +9,9 @@ rootStyles.setProperty('--body-background', 'none')
|
||||
setCookie('colorPalette', 'nightRave')
|
||||
|
||||
//Stops the hue shift when another palette is loaded
|
||||
document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false)
|
||||
if (document.getElementById('inputColorPalette') != null) {
|
||||
document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false)
|
||||
}
|
||||
|
||||
function removeEventListener() {
|
||||
clearInterval(colorCycle)
|
||||
@@ -17,7 +19,7 @@ function removeEventListener() {
|
||||
}
|
||||
|
||||
//Shifts the hue
|
||||
var colorCycle = setInterval(shiftHue, 100)
|
||||
var colorCycle = setInterval(shiftHue, 200)
|
||||
var currentHueRotation = 0
|
||||
|
||||
function shiftHue() {
|
||||
|
Reference in New Issue
Block a user