Skip to content

Commit 9ec6cb0

Browse files
committed
Brighter PlayerColor
1 parent 502f607 commit 9ec6cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/wurstclient/util/PlayerColorRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ public static Color generateBrightColor(int index)
103103
int baseCount = base.length;
104104
int b = Math.abs(index) % baseCount;
105105
int round = Math.abs(index) / baseCount;
106-
// slightly vary brightness by round but keep it bright
107-
float factor = 1.0f - Math.min(0.35f, round * 0.08f);
106+
// Slightly vary brightness by round while keeping colors vibrant
107+
float factor = 1.0f - Math.min(0.2f, round * 0.04f);
108108
Color bc = base[b];
109109
int r = Math.min(255, Math.max(0, (int)(bc.getRed() * factor)));
110110
int g = Math.min(255, Math.max(0, (int)(bc.getGreen() * factor)));

0 commit comments

Comments
 (0)