in src/filter_and_group.py [0:0]
def get_colors_and_alphas(number_of_colors):
preset_colors = [(230/255, 25/255, 75/255),
(60/255, 180/255, 75/255),
(215/255, 215/255, 25/255),
(0/255, 130/255, 200/255),
(245/255, 130/255, 48/255),
(145/255, 30/255, 180/255),
(70/255, 240/255, 240/255),
(240/255, 50/255, 230/255),
(210/255, 245/255, 60/255),
(250/255, 190/255, 212/255),
(0/255, 128/255, 128/255),
(220/255, 190/255, 255/255),
(170/255, 110/255, 40/255),
(255/255, 250/255, 200/255),
(128/255, 0/255, 0/255),
(170/255, 255/255, 195/255),
(128/255, 128/255, 0/255),
(255/255, 215/255, 180/255),
(0/255, 0/255, 128/255),
(128/255, 128/255, 128/255),
(0, 0, 0)] # https://sashamaps.net/docs/resources/20-colors/
colors = []
alphas = []
while number_of_colors > len(preset_colors): # In the case where we need MANY colors, copy the cycle and add more.
preset_colors = preset_colors + preset_colors
for idx in range(number_of_colors):
colors.append(preset_colors[idx])
alphas.append(1)
return colors, alphas