added stars to most pages for a less empty bg

This commit is contained in:
2026-06-28 15:15:40 +02:00
parent 2ff29e74d6
commit dcac48b1e8
12 changed files with 73 additions and 82 deletions
-12
View File
@@ -14,18 +14,6 @@ function loadingScreenSynthwave() {
}
function addStars() {
let starNoise = document.getElementById("starNoise")
let randX = randomInt(0, 256)
let randY = randomInt(0, 256)
debugPrint("Star pos", `[x: ${randX}, y: ${randY}]`)
starNoise.style.top = `round(calc(${randX}px * var(--pxDensity)), var(--pxDensityPx))`
starNoise.style.left = `round(calc(${randY}px * var(--pxDensity)), var(--pxDensityPx))`
}
function onResizeSynthwave() {
renderer.setSize(window.innerWidth, window.innerHeight)
composer.setSize(window.innerWidth, window.innerHeight)