HappyFray
does anyone has a list which team has which color?
I used this script
import math
def clamp(value, min_value, max_value):
return max(min_value, min(max_value, value))
def saturate(value):
return clamp(value, 0.0, 1.0)
def hue_to_rgb(h):
r = abs(h * 6.0 - 3.0) - 1.0
g = 2.0 - abs(h * 6.0 - 2.0)
b = 2.0 - abs(h * 6.0 - 4.0)
return saturate(r), saturate(g), saturate(b)
def hsl_to_rgb(h, s, l):
r, g, b = hue_to_rgb(h)
c = (1.0 - abs(2.0 * l - 1.0)) * s
r = (r - 0.5) * c + l
g = (g - 0.5) * c + l
b = (b - 0.5) * c + l
return r, g, b
print('Team ID\tNameplate color\tScoreboard color')
for TeamNumber in range(64):
r, g, b = hsl_to_rgb(TeamNumber / 64.0, 1, 0.75)
nameplate_color = (int(r * 255), int(g * 255), int(b * 255))
r, g, b = hsl_to_rgb(TeamNumber / 64.0, 1, 0.5)
scoreboard_color = (int(r * 255), int(g * 255), int(b * 255), 127)
print(f"{TeamNumber}\t{nameplate_color}\t{scoreboard_color}")
(edited)
1