Write a general “red-ify” function. Write a function that accepts a picture as input, then doubles the red value of every pixel and cut the blue and green values in half.

What will be an ideal response?

```
def redify(picture):
for pix in getPixels(picture):
valueB = getBlue(pix)/2
valueR = getRed(pix)*2
valueG = getGreen(pix)/2
setColor(pix,makeColor(valueR,valueG,valueB))
```

Computer Science & Information Technology

You might also like to view...

When creating a new report, the Report Header will not be visible in the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

________ paths reference files and folders within the folder where a site is stored

Fill in the blank(s) with correct word

Computer Science & Information Technology