From a189ac8613420ddadb5117aaeaf2f4f1835fbb95 Mon Sep 17 00:00:00 2001 From: Bill Arndt Date: Wed, 15 Feb 2023 06:00:34 -0800 Subject: [PATCH] Update Team.java to increase dynamic range of team colors (#8279) I'm having a lot of trouble finding enough visually distinct team colors; In the worst case I need about 25 colors. I am manually excluded colliding team numbers I know about, but, I can only find about 14 easily distinguishable colors before everything is another bright magenta, or yellow, or cyan, or pale green. --- core/src/mindustry/game/Team.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/game/Team.java b/core/src/mindustry/game/Team.java index 5ca27e6efe..9bd6ee89c2 100644 --- a/core/src/mindustry/game/Team.java +++ b/core/src/mindustry/game/Team.java @@ -42,7 +42,7 @@ public class Team implements Comparable{ Mathf.rand.setSeed(8); //create the whole 256 placeholder teams for(int i = 6; i < all.length; i++){ - new Team(i, "team#" + i, Color.HSVtoRGB(360f * Mathf.random(), 100f * Mathf.random(0.6f, 1f), 100f * Mathf.random(0.8f, 1f), 1f)); + new Team(i, "team#" + i, Color.HSVtoRGB(360f * Mathf.random(), 100f * Mathf.random(0.4f, 1f), 100f * Mathf.random(0.6f, 1f), 1f)); } Mathf.rand.setSeed(new Rand().nextLong()); }