diff --git a/Starlight-Renderer.js b/Starlight-Renderer.js index 305a5c8..6a7f0f1 100644 --- a/Starlight-Renderer.js +++ b/Starlight-Renderer.js @@ -15,6 +15,7 @@ class StarlightRenderer // The colour of the sky in the background. this.skyColour = "hsla(248, 100%, 23%, 1)"; + this.starCount = 1000; this.starSize = new Range(2, 10); this.twinkleDuration = new Range(0.5, 1.5); this.twinkleSize = new Range(1.2, 2); @@ -30,7 +31,7 @@ class StarlightRenderer // ~~~ this.stars = []; - for(let i = 0; i < 100; i++) + for(let i = 0; i < this.starCount; i++) { let nextStar = new Star( this.canvas,