Francesa, it's really ease to make. You just have to create a function with parameter n, which is the index of a route, for instance if you are plotting route 1, n =1. Inside the function you have a dictionary with integer numbers as a key and hex color. So, when you call the function with n=1, it will return the color hexcode save with key 1. Hope this may help you.
thank you
Hi! Is it possible to have the Color library’s code, please?
Francesa, it's really ease to make. You just have to create a function with parameter n, which is the index of a route, for instance if you are plotting route 1, n =1. Inside the function you have a dictionary with integer numbers as a key and hex color. So, when you call the function with n=1, it will return the color hexcode save with key 1. Hope this may help you.