team colors: reduce the hue range within a team so its more clear which team they are on

This commit is contained in:
evanpelle
2026-03-12 20:36:33 -07:00
parent 37f4f606f6
commit a03791bf19
+2 -2
View File
@@ -31,8 +31,8 @@ function generateTeamColors(baseColor: Colord): Colord[] {
return Array.from({ length: colorCount }, (_, index) => {
if (index === 0) return baseColor;
// Spread hues evenly across ±12° band using golden angle within that range
const hueShift = ((index * goldenAngle) % 24) - 12;
// Spread hues evenly across ±6° band using golden angle within that range
const hueShift = ((index * goldenAngle) % 12) - 6;
const h = (lch.h + hueShift + 360) % 360;
// Chroma oscillates ±10% around the base to add variety without washing out