Write a function that pinkifies white in a picture. Input a picture, then check each pixel to see if the red, green, and blue are all over 100. If so, set that pixel to pink.
What will be an ideal response?
```
def pinkify(picture):
for p in getPixels(picture):
if (getRed(p)>100) and (getGreen(p)>100) and (getBlue(p)>100):
setColor(p,pink)
```
Computer Science & Information Technology
You might also like to view...
When working with a linked list, how do you determine the last element in the list?
What will be an ideal response?
Computer Science & Information Technology
If defined by the user, an optional ________ appears when the mouse pointer hovers over a hyperlink
Fill in the blank(s) with correct word
Computer Science & Information Technology
When you save an e-mail message in HTML format, it can be displayed on the Web.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
The function prototype for malloc() is contained in the stdio.h header file.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology