added stars to most pages for a less empty bg
This commit is contained in:
@@ -99,6 +99,7 @@ function toggleGrid(offX = 0, offY = 0) {
|
||||
let repeatCountY = window.innerHeight / pxDensity
|
||||
|
||||
ctx.strokeStyle = "#ff0000"
|
||||
ctx.strokeSize = 1
|
||||
ctx.beginPath()
|
||||
|
||||
for (x = 0; x < repeatCountX; x++) {
|
||||
@@ -172,7 +173,9 @@ document.addEventListener("DOMContentLoaded", async function() {
|
||||
|
||||
switch (CURRENT_PAGE) {
|
||||
case (PAGES.SYNTHWAVE): loadingScreenSynthwave(); break
|
||||
case (PAGES.LICENSE): onLoadLicense(); break
|
||||
case (PAGES.LICENSE): onLoadLicense(); loadingScreenStars(); break
|
||||
case (PAGES.TOYS): loadingScreenStars(); break
|
||||
case (PAGES.LIBS): loadingScreenStars(); break
|
||||
}
|
||||
|
||||
if (navBarPresent) {
|
||||
|
||||
@@ -99,4 +99,14 @@ canvas {
|
||||
}
|
||||
.switch input:checked + .switchDecor:before {
|
||||
transform: translateX(calc(4px * var(--pxDensity)));
|
||||
}
|
||||
#starNoise {
|
||||
position: absolute;
|
||||
top: 0%;
|
||||
left: 0%;
|
||||
width: calc(512px * var(--pxDensity));
|
||||
height: auto;
|
||||
aspect-ratio: 1 / 1;
|
||||
image-rendering: pixelated;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
Reference in New Issue
Block a user