This section introduces different ways to represent colors in computer graphics. As there are several ways to store computer images in files and various methods to display them in different qualities, one needs to know some of its background. I will mostly use Photoshop's terminology for image modes and color modes.

Usually, the color description is not a color name, but made up of so-called RGB values (see below). Technically, every pixel in a indexed color mode image is assigned a color number, and by manipulation of the color values, one can change all pixels of this color at the same time. A smiley with black eyes on purple background, presented as color numbers, would look like this:
1111111111111111
1111333111333111
1111111111111111
1111333111333111
1111111333111111
1111111111111111
To change the eye color to yellow, it is not necessary to replace all the 3's by 0's, is would be sufficient to alter color table entry number 3 from black to yellow.
A detailed overview of color modes in computer graphics can be found in chapter 3 of [2].