Program 34 (page 89) obviously reduces the red by too much. Write a version that only reduces

Question:

Program 34 (page 89) obviously reduces the red by too much. Write a version that only reduces the red by 10%, then one by 20%. Can you find pictures where each is most useful? Note that you can always repeatedly reduce the red in a picture but you don’t want to have to do it too many times.


Data from Problem 34

Reduce the Amount of Red in a Picture by 50%

def decreaseRed (picture): for pix in getPixels(picture): value=getRed (pix) setRed (pix, value*0.5)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: