]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/score/score.c
Tweak level display color
[dungeon_game.git] / plugins / score / score.c
index c310d3b5696935cf2cc22ea22a193969e7f3d94c..6a8e85d37251c83b61f7b76b17959226e1fe3391 100644 (file)
@@ -53,7 +53,7 @@ static void render_score(struct winsize ws)
        set_color((struct color) {bar_flash, 255, bar_flash}, true);
 
        int level_flash = clamp(level_timer * 255, 0, 255);
-       set_color((struct color) {255, 255, 255 - level_flash}, false);
+       set_color((struct color) {level_flash, 128 + (level_flash / 2), level_flash}, false);
 
        size_t level_len = level_symbol_len > 0 ? 6 + level_symbol_len + 1 : 0;
        char level_display[level_len];