Question: develop python program 1. Luminance (5 points) In RGB (red-green-blue) color notation, a color is represented by a trio of integer values, each of which

develop python program

1. Luminance (5 points) In RGB (red-green-blue) color notation, a color is represented by a trio of integer values, each of which falls in the range 0255. For example, (0, 255, 0) represents pure green. The luminance (intensity) of a color is computed as the weighted sum of its red, green, and blue components: luminance = (red * 0.299) + (green * 0.587) + (blue * 0.114) Complete the luminance() function, which takes three integer values as its arguments (representing the red, green, and blue components of a color, in that order). The function should calculate and return the luminance value of that color, using the formula above. For example, given the red, green, and blue values 200, 70, and 50, the luminance would be 106.59. You may assume that the user will always enter integer values in the range 0255 (inclusive).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!