Sets the color of the specified colormap index.