TASK 1: Swap Brightest and Darkest Colors (15 – 20 min) Create a function LightDark which identifies the brightest color
Posted: Tue Apr 26, 2022 4:07 pm
TASK 1: Swap Brightest and Darkest Colors (15 – 20 min) Create a function LightDark which identifies the brightest color of a given image (closest to white) and swaps that color with the darkest color of the image (closest to black). HINT: The brightness of a color is proportional to the sum of its RGB values.
Normal Colors Swapped C
Normal Colors Swapped C