added stars to most pages for a less empty bg
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user