The color values

See Figure 1.

putpixel is called inside the inner loop in Listing 2: