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
TASK 1: Swap Brightest and Darkest Colors (15 – 20 min) Create a function LightDark which identifies the brightest color
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
TASK 1: Swap Brightest and Darkest Colors (15 – 20 min) Create a function LightDark which identifies the brightest color
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!