d5bfab8
1
2
3
4
5
6
7
def normalize_color(color: int) -> int: if color < 0: return 0 if color > 12: return 255 return color * 255 // 12