Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the file review py, write a function named cross Fade that takes a picture ob

ID: 3837951 • Letter: I

Question

In the file review py, write a function named cross Fade that takes a picture object as input and modifies all of the pixels such that, if the x-coordinate of the pixel is greater than 100 and less than 150, the function sets the color of the pixel to the color provided by getFadeColor (see description below) Next, if the y-coordinate of the pixel is greater than 100 and less than 150, the function sets the color of the pixel to the color provided by getFadeColor (see description below) The getFadeColor function is provided in review py. It takes a pixel's x-coordinate value, y-coordinate value and the original picture and returns a color object that is 50% the original pixel color and 50% white.

Explanation / Answer

Understanding the above problem statement I have written the code in the below.

Please have look at the takePicture function() which gives result almost to your problem statement.

Kindly test the below code with some .gif images to test the functionality

***************

****************

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote