You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error:
TypeError: Random.shuffle() takes 2 positional arguments but 3 were given
In the code of Colors.py:
was fixed by replacing it with:
def shuffled_hue(scale):
palette = list(smooth_hue_palette(scale))
random_keys = [random.random() for _ in palette]
palette = [x for _, x in sorted(zip(random_keys, palette))]
return numpy.array(palette)
The text was updated successfully, but these errors were encountered:
The error:
TypeError: Random.shuffle() takes 2 positional arguments but 3 were given
In the code of Colors.py:
was fixed by replacing it with:
def shuffled_hue(scale):
palette = list(smooth_hue_palette(scale))
random_keys = [random.random() for _ in palette]
palette = [x for _, x in sorted(zip(random_keys, palette))]
return numpy.array(palette)
The text was updated successfully, but these errors were encountered: