The color values (cont'd)

See Figure 1 and Listing 2.

The red and green color values assigned to each pixel are equal to the coordinates of the pixel.

A constant blue color value of 128 (half intensity) is assigned to every pixel. 

When the row and column counters are both equal to zero in the upper-left corner:

When the red and green color values are at their maximum in the lower-right corner: