Example 2 - Make another black and white image:
Again we need to make sure that the three colour components have the same value. Here is a simpler algorithm that produces a different black and white image:
The program would look like this:
Try it out here:
Does the image look the same if you make all three colours have the same value as their Red values? What about if they are matched to their Green values?