feat(core): change theme color and stars count
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user