Make the pixels partially transparent
The code in Listing 5
- uses a pair of nested for loops
- to iterate
through all of the pixels in the picture referred to by output
- and to modify
each pixel.
The four statements in the body of the inner loop in Listing 5
- cause the
current pixel to become partially transparent.