aligned eerything to be pixel-perfect

This commit is contained in:
8BitBiscotti
2024-12-12 09:38:33 +01:00
parent dc61e02c60
commit 7eede71229
10 changed files with 84 additions and 37 deletions
+2 -2
View File
@@ -3,6 +3,6 @@ document.addEventListener("DOMContentLoaded", function() {
let randX = randomInt(0, 256)
let randY = randomInt(0, 256)
starNoise.style.top = `calc(${randX}px * var(--pxDensity))`
starNoise.style.left = `calc(${randY}px * var(--pxDensity))`
starNoise.style.top = `round(calc(${randX}px * var(--pxDensity)), var(--pxDensityPx))`
starNoise.style.left = `round(calc(${randY}px * var(--pxDensity)), var(--pxDensityPx))`
}, false)