Question: Write a program checkLuminance that will input red, green, and blue values, and compute the luminance using the weighted average (as below). But then print
Write a program checkLuminance that will input red, green, and blue values, and compute the luminance using the weighted average (as below). But then print out a warning to the user based on the computed luminance:
• If the luminance is less than 10, “That’s going to be awfully dark.”
• If the luminance is between 50 and 200, “Looks like a good range.”
• Over 250, “That’s going to be nearly white!”
Step by Step Solution
3.41 Rating (170 Votes )
There are 3 Steps involved in it
def checkLuminanceredValue greenValue blueValue lumin... View full answer
Get step-by-step solutions from verified subject matter experts
