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...
A(n) ____ key is a field or collection of fields that could function as the primary key, but was not chosen to do so.
A. candidate B. artificial C. surrogate D. foreign
The advantages of using typedef do not include:
a. Making programs more portable by allowing data types to be easily changed to meet system specifications. b. Making type names shorter. c. Making programs more readable. d. Increasing the efficiency of accessing struct member variables.
Use integer variables x and y to specify the field width and precision used to display the double value 87.4573, and display the value.
What will be an ideal response?
A(n) ________ consists of a single space followed by a single underscore character as the last character in a line of code
Fill in the blank(s) with correct word