added sun and stars

This commit is contained in:
8BitBiscotti
2024-12-11 14:51:08 +01:00
parent d66ae0dd55
commit dc61e02c60
6 changed files with 50 additions and 9 deletions
+8
View File
@@ -0,0 +1,8 @@
document.addEventListener("DOMContentLoaded", function() {
let starNoise = document.getElementById("starNoise")
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))`
}, false)