Get the color in colors at the specified index. Checks if index is a valid index of colors and if so, returns the color stored there, if not, returns 0 (black).
index
colors
0