"Palette" has its size and a method to get a color specidied with index.