13 Commits

Author SHA1 Message Date
9194ad98db "Correct" element grabbing 2025-05-08 10:54:12 -07:00
71e7662408 Add a manual light/dark mode switcher
Despite the simplicity of the commit title, this was a pretty big
change. The styling used to just go off of the system's color scheme,
but that can't be overridden. Instead, I have made a variable that
determines whether dark theme is active and made a small panel with some
buttons to change the theme. I had to change a lot of code to achieve
this and lost a lot of hair (I metaphorically pulled it out) from
writing this code.

I also changed things from legacy mode to rune mode (Svelte 4 to 5)
while I was at it, that wasn't too big.
2025-05-07 21:17:52 -07:00
3c1aa4fbe4 Use OffscreenCanvas instead of HTMLCanvasElement for buffers 2025-04-02 20:35:09 -07:00
9b58e864a2 Proper image loading 2025-04-02 20:30:57 -07:00
4b99a1c26e Fix oversights in bg renderer
So it turns out the performance improvements were completelty neglected
because my code is bad. The buffer wasn't getting rendered to the canvas
in the best way, and there were too many particles for smaller screens.
I have now added a simple math equasion to the init function that
decides how many particles are needed based on the display size. It
still needs a lot of tweaking, and a more complex function is probably
necessary for good results. I'm still trying to get this background to
not suck and actually look good.
2025-04-02 19:49:37 -07:00
a3a774b964 Change particle color and ammount 2025-03-31 20:08:30 -07:00
ac3d579254 Massive performance improvement in background rendering
Turns out the performance bottleneck was actually rendering the
gradients every frame, so they are now rendering to a buffer when the
page loads once and that buffer is being rendered as an image every
frame. No functionality has been changed; but it runs so much faster and
is much more efficient on mobile devices.
2025-03-31 19:59:16 -07:00
5f52d9ec4d BG: remove gradient breathing effect
This was causing some rendering bugs, and I didn't want it anyways.
2025-03-18 17:24:24 -07:00
6177d407d2 BG: fix particle rotation axis 2025-03-18 17:00:42 -07:00
3332d4ab89 Proper DPI scaling for the background canvas 2025-03-13 19:43:12 -07:00
2587ddd721 Change bg shapes to SVGs and add more complex shapes 2025-03-13 10:46:04 -07:00
514b413281 Embed bg canvas style to Svelte component 2025-03-10 11:29:27 -07:00
6cbbe07371 Migrate background animation to a Svelte component 2025-03-10 11:25:36 -07:00