Write three functions, one to clear blue and one to clear red, and one to clear green. For each of these, which would be the most useful in actual practice? How about combinations of them?
You don’t need to write a clearBlue function
```
def clearBlue(picture):
for p in getPixels(picture):
setBlue(p,0)
def clearRed(picture):
for p in getPixels(picture):
setRed(p,0)
def clearGreen(picture):
for p in getPixels(picture): setGreen(p,0)
```
While all of them could potentially be useful as a means of making an image look different for artistic purposes, clearing out the red (assuming little to no red elsewhere in the image) could help to avoid red-eye problems with flash photography. A combination could also work for artistic purposes, seeing as it would leave you with an image that had only values of the same primary color.
Note: There may be multiple potential answers to the second part of this question.
You might also like to view...
The default paste option when pasting a table from a Word into PowerPoint is Use ________ Styles
Fill in the blank(s) with correct word
What are the steps involved in a buffer overflow exploit?
What will be an ideal response?