Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pysc2/lib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def smooth_hue_palette(scale):

def shuffled_hue(scale):
palette = list(smooth_hue_palette(scale))
random.Random(21).shuffle(palette) # Return a fixed shuffle
random.seed(21) # provide a fixed seed (modify as necessary) to support Python 3.9+
random.shuffle(palette) # Return a fixed shuffle
return numpy.array(palette)


Expand Down