Write a function that decreases red by 50% on the left side of the picture, and increases it by 200% on the right side.
What will be an ideal response?
```
def alterReds(picture):
center = getWidth(picture)/2
for p in getPixels(picture):
x= getX(p)
if x
setRed(p,redVal)
elif x>center:
redVal = getRed(p)*2
setRed(p,redVal)
```
Computer Science & Information Technology
You might also like to view...
When you append records, the fields and data types from the source table must match the destination table
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following is not a core component of a CRM system?
A. Sales B. Marketing C. Customer support D. Payment gateway
Computer Science & Information Technology