Question: Write a function to create a lightened grayscale image, by use makeLighter. First, lighten the image by using the makeLighter function on each color. Now,

Write a function to create a lightened grayscale image, by use makeLighter. First, lighten the image by using the makeLighter function on each color. Now, grayscale the new image. Compare the result to the picture created by the previous problem. How does makeLighter compare to adding 75 to each of the red, green, and blue components of every pixel?


Data from Previous Problem

Write a function to create a lightened grayscale image. First, lighten the image by adding 75 to the red, green, and blue components of every pixel. Since higher numbers are closer to white, this should make the pixel lighter. Now, grayscale the new image.

Step by Step Solution

3.29 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def grayscale3picture for p in getPixelspicture color getColorp color makeL... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Computing and Programming in Pytho Questions!