Skip to content

Commit fdb9373

Browse files
committed
Adjust contrast a bit for improved visibility
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent d1ac3e8 commit fdb9373

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ void render_star_ball(DemoContext *ctx)
485485
bg_stars[i].y = (float)(rand() % HEIGHT);
486486
bg_stars[i].layer = i % 3; /* Distribute across 3 layers */
487487
/* Fainter stars for farther layers */
488-
bg_stars[i].brightness = (bg_stars[i].layer == 0) ? 40 :
489-
(bg_stars[i].layer == 1) ? 60 : 80;
488+
bg_stars[i].brightness = (bg_stars[i].layer == 0) ? 60 :
489+
(bg_stars[i].layer == 1) ? 90 : 120;
490490
}
491491
bg_initialized = 1;
492492
}
@@ -535,7 +535,7 @@ void render_star_ball(DemoContext *ctx)
535535

536536
int h_section = (int)(hue * 6);
537537
float f = hue * 6 - h_section;
538-
int v = 200; /* Slightly dimmer so ball stands out */
538+
int v = 160; /* Dimmer so ball and stars stand out */
539539
int p = 0;
540540
int q = (int)(v * (1 - f));
541541
int t_val = (int)(v * f);

0 commit comments

Comments
 (0)