feat(core): change theme color and stars count

This commit is contained in:
nico.hdr8
2025-10-06 13:06:44 +02:00
parent f25e61be55
commit 9a855f8543
2 changed files with 14 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ export class Background {
@ViewChild('canvas', { static: true }) canvasRef!: ElementRef<HTMLCanvasElement>;
// Config
private numStars = 150;
private numStars = 300;
private minBlink = 0.2;
private maxBlink = 1;
private blinkSpeed = 0.002; // Stern blinkt langsamer oder schneller
@@ -96,8 +96,8 @@ export class Background {
ctx.beginPath();
ctx.arc(star.x, star.y - this.scrollY * this.parallaxFactor, star.radius, 0, Math.PI * 2);
ctx.fillStyle = this.themeSwitchService.darkMode()
? `rgba(255, 215, 0, ${star.alpha})`
: `rgba(184, 134, 11, ${star.alpha})`;
? `rgba(191, 158, 74, ${star.alpha})`
: `rgba(255, 219, 112, ${star.alpha})`;
ctx.fill();
}