Typically, a color table consists of 256 entries where
each entry represents a color containing red, green, and
blue components. In general, a palette-based image mainly
consists of a color table and some image data, which
contain indices corresponding to the color table entries.